]> git.donarmstrong.com Git - mothur.git/blobdiff - parselistscommand.h
added parse.list command
[mothur.git] / parselistscommand.h
diff --git a/parselistscommand.h b/parselistscommand.h
new file mode 100644 (file)
index 0000000..8f91017
--- /dev/null
@@ -0,0 +1,47 @@
+#ifndef PARSELISTCOMMAND_H
+#define PARSELISTCOMMAND_H
+/*
+ *  parselistcommand.h
+ *  Mothur
+ *
+ *  Created by westcott on 2/24/10.
+ *  Copyright 2010 Schloss Lab. All rights reserved.
+ *
+ */
+
+#include "command.hpp"
+#include "groupmap.h"
+#include "inputdata.h"
+#include "listvector.hpp"
+
+/***************************************************************************************/
+
+class ParseListCommand : public Command {
+       
+public:
+       ParseListCommand(string);       
+       ~ParseListCommand();
+       int execute();  
+       void help();
+       
+private:
+       void parse(ListVector*);
+               
+       ListVector* list;
+       GroupMap* groupMap;
+       InputData* input;
+       
+       ofstream out;
+       string outputDir, listfile, groupfile, label;
+       set<string> labels;
+       bool abort, allLines;
+       
+       map<string, ofstream*> filehandles;
+       map<string, ofstream*>::iterator it3;
+
+};
+
+/***************************************************************************************/
+
+#endif
+