]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.hpp
worked on hcluster. made .single command run using a sharedfile. and various other...
[mothur.git] / commandfactory.hpp
index f715b8488c626e1de22e46b6e624d04d599f76d1..70e263078eee32ad8e706816f15be03a2fb6d369 100644 (file)
@@ -16,11 +16,22 @@ class Command;
 
 class CommandFactory {
 public:
-       CommandFactory();
-       ~CommandFactory();
-       Command* getCommand(string);
+       static CommandFactory* getInstance();
+       Command* getCommand(string, string);
+       Command* getCommand();
+       bool isValidCommand(string);
+       void printCommands(ostream&);
+
 private:
        Command* command;
+       map<string, string> commands;
+       map<string, string>::iterator it;
+       
+       static CommandFactory* _uniqueInstance;
+       CommandFactory( const CommandFactory& ); // Disable copy constructor
+       void operator=( const CommandFactory& ); // Disable assignment operator
+       CommandFactory();
+       ~CommandFactory();
 
 };