X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=validcalculator.h;fp=validcalculator.h;h=59f6bb3488ddb03acdc9a8682b748e9347f04fb9;hb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;hp=0000000000000000000000000000000000000000;hpb=1b73ff67c83892a025e597dabd9df6fe7b58206a;p=mothur.git diff --git a/validcalculator.h b/validcalculator.h new file mode 100644 index 0000000..59f6bb3 --- /dev/null +++ b/validcalculator.h @@ -0,0 +1,64 @@ +#ifndef VALIDCALCULATOR_H +#define VALIDCALCULATOR_H + +/* + * validcalculator.h + * Dotur + * + * Created by Sarah Westcott on 1/5/09. + * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. + * + */ + +#include "mothur.h" +#include "mothurout.h" + +//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); + void printCalc(string, ostream&); + string printCalc(string); + void printCitations(vector); + + private: + map single; + map shared; + map rarefaction; + map summary; + map sharedrarefaction; + map sharedsummary; + map vennsingle; + map vennshared; + map treegroup; + map matrix; + map heat; + map boot; + map distance; + map::iterator it; + set allCalcs; + + void initialSingle(); + void initialShared(); + void initialRarefaction(); + void initialSharedRarefact(); + void initialSummary(); + void initialSharedSummary(); + void initialVennSingle(); + void initialVennShared(); + void initialTreeGroups(); + void initialMatrix(); + void initialBoot(); + void initialDistance(); + void initialHeat(); + + MothurOut* m; +}; + +#endif