]> git.donarmstrong.com Git - mothur.git/blobdiff - validcalculator.h
Initial revision
[mothur.git] / validcalculator.h
diff --git a/validcalculator.h b/validcalculator.h
new file mode 100644 (file)
index 0000000..36a1174
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ *  validcalculator.h
+ *  Dotur
+ *
+ *  Created by Sarah Westcott on 1/5/09.
+ *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
+ *
+ */
+using namespace std;
+
+#include <Carbon/Carbon.h>
+#include <string>
+#include <iostream>
+#include <map>
+
+//This class contains a list of all valid calculators in Mothur.  
+//It has a function which will tell you if your calculator is valid for the given parameter.
+//When adding a new calculator you must add it to the valid list.
+
+
+class ValidCalculators {
+       public:
+               ValidCalculators();
+               ~ValidCalculators();
+               bool isValidCalculator(string, string);
+               
+       private:
+               map<string, string> single;
+               map<string, string> shared;
+               map<string, string> rarefaction;
+               map<string, string> summary;
+               map<string, string> sharedrarefaction;
+               map<string, string> sharedsummary;
+               void initialSingle();
+               void initialShared();
+               void initialRarefaction();
+               void initialSharedRarefact();
+               void initialSummary();
+               void initialSharedSummary();
+               
+               
+};