X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedutilities.h;fp=sharedutilities.h;h=df7e8d3091d811285f15cb49402053ec09a4f535;hb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;hp=0000000000000000000000000000000000000000;hpb=1b73ff67c83892a025e597dabd9df6fe7b58206a;p=mothur.git diff --git a/sharedutilities.h b/sharedutilities.h new file mode 100644 index 0000000..df7e8d3 --- /dev/null +++ b/sharedutilities.h @@ -0,0 +1,41 @@ +#ifndef SHAREDUTIL_H +#define SHAREDUTIL_H +/* + * sharedutilities.h + * Mothur + * + * Created by Sarah Westcott on 4/9/09. + * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. + * + */ + +#include "mothur.h" +#include "mothurout.h" + +class SharedRAbundVector; +class SharedOrderVector; + +/**************************************************************************************************/ + +class SharedUtil { + public: + SharedUtil() { m = MothurOut::getInstance(); } + ~SharedUtil() {}; + + void getSharedVectors(vector, vector&, SharedOrderVector*); + void getSharedVectorswithReplacement(vector, vector&, SharedOrderVector*); + void setGroups(vector&, vector&); //globaldata->Groups, your tree or group map + void setGroups(vector&, vector&, string); //globaldata->Groups, your tree or group map, mode + void setGroups(vector&, vector&, string&, int&, string); //globaldata->Groups, your tree or group map, allgroups, numGroups, mode + void getCombos(vector&, vector, int&); //groupcomb, globaldata->Groups, numcomb + void updateGroupIndex(vector&, map&); //globaldata->Groups, groupmap->groupIndex + bool isValidGroup(string, vector); + + private: + MothurOut* m; + +}; + +/**************************************************************************************************/ + +#endif