]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.hpp
added sorted parameter to get.oturep, added error checking to chimera classes in...
[mothur.git] / commandfactory.hpp
index 55f70eaabf1440488c46679472dd86c36693b088..70e263078eee32ad8e706816f15be03a2fb6d369 100644 (file)
@@ -16,8 +16,7 @@ class Command;
 
 class CommandFactory {
 public:
-       CommandFactory();
-       ~CommandFactory();
+       static CommandFactory* getInstance();
        Command* getCommand(string, string);
        Command* getCommand();
        bool isValidCommand(string);
@@ -27,8 +26,12 @@ 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();
 
 };