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