X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=seqsummarycommand.h;h=d8837a374d070298ceb9d224aaf8c621680bf249;hb=791f42d21a85f794529fd4c912dcc27d873c25e8;hp=32947cac88b546e386e7e9960715364e384db3b3;hpb=ae57e166b2ed7b475ec3f466106bd76fabadd063;p=mothur.git diff --git a/seqsummarycommand.h b/seqsummarycommand.h index 32947ca..d8837a3 100644 --- a/seqsummarycommand.h +++ b/seqsummarycommand.h @@ -61,12 +61,12 @@ private: //custom data structure for threads to use. // This is passed by void pointer so it can be any data type // that can be passed using a single void pointer (LPVOID). -typedef struct seqSumData { - vector* startPosition; - vector* endPosition; - vector* seqLength; - vector* ambigBases; - vector* longHomoPolymer; +struct seqSumData { + vector startPosition; + vector endPosition; + vector seqLength; + vector ambigBases; + vector longHomoPolymer; string filename; string sumFile; unsigned long long start; @@ -78,12 +78,7 @@ typedef struct seqSumData { seqSumData(){} - seqSumData(vector* s, vector* e, vector* l, vector* a, vector* h, string f, string sf, MothurOut* mout, unsigned long long st, unsigned long long en, string na, map nam) { - startPosition = s; - endPosition = e; - seqLength = l; - ambigBases = a; - longHomoPolymer = h; + seqSumData(string f, string sf, MothurOut* mout, unsigned long long st, unsigned long long en, string na, map nam) { filename = f; sumFile = sf; m = mout; @@ -96,7 +91,7 @@ typedef struct seqSumData { }; /**************************************************************************************************/ -#if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) +#if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) || (__linux__) || (__unix__) || (__unix) #else static DWORD WINAPI MySeqSumThreadFunction(LPVOID lpParam){ seqSumData* pDataArray; @@ -137,11 +132,11 @@ static DWORD WINAPI MySeqSumThreadFunction(LPVOID lpParam){ //for each sequence this sequence represents for (int i = 0; i < num; i++) { - pDataArray->startPosition->push_back(current.getStartPos()); - pDataArray->endPosition->push_back(current.getEndPos()); - pDataArray->seqLength->push_back(current.getNumBases()); - pDataArray->ambigBases->push_back(current.getAmbigBases()); - pDataArray->longHomoPolymer->push_back(current.getLongHomoPolymer()); + pDataArray->startPosition.push_back(current.getStartPos()); + pDataArray->endPosition.push_back(current.getEndPos()); + pDataArray->seqLength.push_back(current.getNumBases()); + pDataArray->ambigBases.push_back(current.getAmbigBases()); + pDataArray->longHomoPolymer.push_back(current.getLongHomoPolymer()); } outSummary << current.getName() << '\t';