X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothurout.h;h=d2a36b351902f3bc25d7c2132fb2c20f15421b23;hb=8dd3c225255d7084e3aff8740aa4f1f1cabb367a;hp=e61490267270680e6800cfa31a68b47cb1bbbbc3;hpb=88fbc534a92cb91900e98a3288dfa1f68828b69b;p=mothur.git diff --git a/mothurout.h b/mothurout.h index e614902..d2a36b3 100644 --- a/mothurout.h +++ b/mothurout.h @@ -53,7 +53,7 @@ class MothurOut { vector binLabelsInFile; vector currentBinLabels; string saveNextLabel, argv, sharedHeaderMode; - bool printedHeaders; + bool printedHeaders, commandInputsConvertError; //functions from mothur.h //file operations @@ -84,6 +84,9 @@ class MothurOut { int readNames(string, map >&); int readNames(string, vector&, map&); int mothurRemove(string); + bool mothurConvert(string, int&); //use for converting user inputs. Sets commandInputsConvertError to true if error occurs. Engines check this. + bool mothurConvert(string, float&); //use for converting user inputs. Sets commandInputsConvertError to true if error occurs. Engines check this. + bool mothurConvert(string, double&); //use for converting user inputs. Sets commandInputsConvertError to true if error occurs. Engines check this. //searchs and checks @@ -94,8 +97,10 @@ class MothurOut { void getNumSeqs(ifstream&, int&); int getNumSeqs(ifstream&); int getNumNames(string); + int getNumChar(string, char); bool isTrue(string); bool isContainingOnlyDigits(string); + bool isNumeric1(string); //string manipulation @@ -197,6 +202,7 @@ class MothurOut { flowfile = ""; gui = false; printedHeaders = false; + commandInputsConvertError = false; sharedHeaderMode = ""; } ~MothurOut();