1 #ifndef COMMANDFACTORY_HPP
2 #define COMMANDFACTORY_HPP
8 * Created by Pat Schloss on 10/25/08.
9 * Copyright 2008 Patrick D. Schloss. All rights reserved.
14 #include "mothurout.h";
18 class CommandFactory {
20 static CommandFactory* getInstance();
21 Command* getCommand(string, string);
22 Command* getCommand();
23 bool isValidCommand(string);
24 void printCommands(ostream&);
25 void setOutputDirectory(string o) { outputDir = o; }
26 void setInputDirectory(string i) { inputDir = i; }
27 string getOutputDir() { return outputDir; }
32 map<string, string> commands;
33 map<string, string>::iterator it;
34 string outputDir, inputDir;
36 static CommandFactory* _uniqueInstance;
37 CommandFactory( const CommandFactory& ); // Disable copy constructor
38 void operator=( const CommandFactory& ); // Disable assignment operator