]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.hpp
1.9
[mothur.git] / commandfactory.hpp
index 6f96e90b4813e961222c60f9bb7390188d19c3e5..3b6a17e38b2abb74b152da573a9bf2f1666e62e6 100644 (file)
@@ -1,45 +1,45 @@
-#ifndef COMMANDFACTORY_HPP
-#define COMMANDFACTORY_HPP
-
-/*
- *  commandfactory.h
- *  
- *
- *  Created by Pat Schloss on 10/25/08.
- *  Copyright 2008 Patrick D. Schloss. All rights reserved.
- *
- */
-
-#include "mothur.h"
-#include "mothurout.h";
-
-class Command;
-
-class CommandFactory {
-public:
-       static CommandFactory* getInstance();
-       Command* getCommand(string, string);
-       Command* getCommand();
-       bool isValidCommand(string);
-       void printCommands(ostream&);
-       void setOutputDirectory(string o)       {       outputDir = o;          }
-       void setInputDirectory(string i)        {       inputDir = i;           }
-       string getOutputDir()                           {       return outputDir;       }
-       bool MPIEnabled(string);
-
-private:
-       Command* command;
-       MothurOut* m;
-       map<string, string> commands;
-       map<string, string>::iterator it;
-       string outputDir, inputDir;
-       
-       static CommandFactory* _uniqueInstance;
-       CommandFactory( const CommandFactory& ); // Disable copy constructor
-       void operator=( const CommandFactory& ); // Disable assignment operator
-       CommandFactory();
-       ~CommandFactory();
-
-};
-
-#endif
+#ifndef COMMANDFACTORY_HPP\r
+#define COMMANDFACTORY_HPP\r
+\r
+/*\r
+ *  commandfactory.h\r
+ *  \r
+ *\r
+ *  Created by Pat Schloss on 10/25/08.\r
+ *  Copyright 2008 Patrick D. Schloss. All rights reserved.\r
+ *\r
+ */\r
+\r
+#include "mothur.h"\r
+#include "mothurout.h"\r
+\r
+class Command;\r
+\r
+class CommandFactory {\r
+public:\r
+       static CommandFactory* getInstance();\r
+       Command* getCommand(string, string);\r
+       Command* getCommand();\r
+       bool isValidCommand(string);\r
+       void printCommands(ostream&);\r
+       void setOutputDirectory(string o)       {       outputDir = o;          }\r
+       void setInputDirectory(string i)        {       inputDir = i;           }\r
+       string getOutputDir()                   {       return outputDir;               }\r
+       bool MPIEnabled(string);\r
+\r
+private:\r
+       Command* command;\r
+       MothurOut* m;\r
+       map<string, string> commands;\r
+       map<string, string>::iterator it;\r
+       string outputDir, inputDir;\r
+       \r
+       static CommandFactory* _uniqueInstance;\r
+       CommandFactory( const CommandFactory& ); // Disable copy constructor\r
+       void operator=( const CommandFactory& ); // Disable assignment operator\r
+       CommandFactory();\r
+       ~CommandFactory();\r
+\r
+};\r
+\r
+#endif\r