X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=inputdata.h;fp=inputdata.h;h=658b21d8cdfe649d8434e883655ecd18922f2554;hb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;hp=0000000000000000000000000000000000000000;hpb=1b73ff67c83892a025e597dabd9df6fe7b58206a;p=mothur.git diff --git a/inputdata.h b/inputdata.h new file mode 100644 index 0000000..658b21d --- /dev/null +++ b/inputdata.h @@ -0,0 +1,52 @@ +#ifndef INPUTDATA_H +#define INPUTDATA_H + +#include "mothur.h" +#include "ordervector.hpp" +#include "sharedlistvector.h" +#include "sharedordervector.h" +#include "listvector.hpp" +#include "sharedrabundfloatvector.h" + + +class InputData { + +public: + InputData(string, string); + InputData(string, string, string); + ~InputData(); + ListVector* getListVector(); + ListVector* getListVector(string); //pass the label you want + ListVector* getListVector(string, bool); //pass the label you want, reset filepointer + SharedListVector* getSharedListVector(); + SharedListVector* getSharedListVector(string); //pass the label you want + OrderVector* getOrderVector(); + OrderVector* getOrderVector(string); //pass the label you want + SharedOrderVector* getSharedOrderVector(); + SharedOrderVector* getSharedOrderVector(string); //pass the label you want + SAbundVector* getSAbundVector(); + SAbundVector* getSAbundVector(string); //pass the label you want + RAbundVector* getRAbundVector(); + RAbundVector* getRAbundVector(string); //pass the label you want + vector getSharedRAbundVectors(); + vector getSharedRAbundVectors(string); //pass the label you want + vector getSharedRAbundFloatVectors(); + vector getSharedRAbundFloatVectors(string); //pass the label you want + +private: + string format; + ifstream fileHandle; + DataVector* input; + ListVector* list; + SharedListVector* SharedList; + OrderVector* output; + SharedOrderVector* SharedOrder; + SAbundVector* sabund; + RAbundVector* rabund; + map orderMap; + string filename; + MothurOut* m; +}; + + +#endif