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.
17 class CommandFactory {
19 static CommandFactory* getInstance();
20 Command* getCommand(string, string);
21 Command* getCommand();
22 bool isValidCommand(string);
23 void printCommands(ostream&);
27 map<string, string> commands;
28 map<string, string>::iterator it;
30 static CommandFactory* _uniqueInstance;
31 CommandFactory( const CommandFactory& ); // Disable copy constructor
32 void operator=( const CommandFactory& ); // Disable assignment operator