1 // CommandFactory.h: interface for the CCommandFactory class.
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_COMMANDFACTORY_H__1ACA9B5D_0D2A_42A2_8C4A_A34C1D867A2A__INCLUDED_)
6 #define AFX_COMMANDFACTORY_H__1ACA9B5D_0D2A_42A2_8C4A_A34C1D867A2A__INCLUDED_
10 #endif // _MSC_VER > 1000
16 /** Class thrown when the command name is not recognized. */
17 class unknown_command
: public SSException
{
19 unknown_command(const std::string
& name
)
20 : SSException(std::string("unknown command ").append(name
))
24 /** Class thrown when no command name was specified. */
25 class missing_command
: public SSException
{
28 : SSException(std::string("missing command "))
36 virtual ~CCommandFactory();
38 CCommand
* MakeCommand (std::string command
);
39 void PrintUsage () const;
44 #endif // !defined(AFX_COMMANDFACTORY_H__1ACA9B5D_0D2A_42A2_8C4A_A34C1D867A2A__INCLUDED_)