X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=validcalculator.h;fp=validcalculator.h;h=36a1174b813dc1d9581a927982e0e0182534e2e9;hb=20a2d0350a737a434c89f303662d64a8eeea7b05;hp=0000000000000000000000000000000000000000;hpb=bbb5879a7e566935c23d63d42bb945072424b939;p=mothur.git diff --git a/validcalculator.h b/validcalculator.h new file mode 100644 index 0000000..36a1174 --- /dev/null +++ b/validcalculator.h @@ -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 +#include +#include +#include + +//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 single; + map shared; + map rarefaction; + map summary; + map sharedrarefaction; + map sharedsummary; + void initialSingle(); + void initialShared(); + void initialRarefaction(); + void initialSharedRarefact(); + void initialSummary(); + void initialSharedSummary(); + + +};