*
*/
-#include <Carbon/Carbon.h>
-#include <iostream>
-#include <fstream>
-#include <vector>
#include "command.hpp"
#include "sabundvector.hpp"
#include "inputdata.h"
#include "calculator.h"
-#include "readmatrix.hpp"
+#include "readotu.h"
+#include "validcalculator.h"
/* The summary() command:
The summary command can only be executed after a successful read.list, read.sabund or read.rabund command, with one exception.
class SummaryCommand : public Command {
public:
- SummaryCommand();
+ SummaryCommand(string);
~SummaryCommand();
int execute();
+ void help();
private:
GlobalData* globaldata;
- ReadMatrix* read;
+ ReadOTUFile* read;
vector<Calculator*> sumCalculators;
InputData* input;
+ ValidCalculators* validCalculator;
SAbundVector* sabund;
string outputFileName;
ofstream outputFileHandle;
+ int abund, size;
+
+ bool abort, allLines;
+ set<int> lines; //hold lines to be used
+ set<string> labels; //holds labels to be used
+ string line, label, calc;
+ vector<string> Estimators;
+
};
-#endif
\ No newline at end of file
+#endif