1 //
2 // ShellCommand.h: interface for the CShellCommand class.
3 //
4 //////////////////////////////////////////////////////////////////////
5 
6 #if !defined(SHELLCOMMAND_H__D29C1193_5942_11D4_A037_C5AC8D00940F__INCLUDED_)
7 #define SHELLCOMMAND_H__D29C1193_5942_11D4_A037_C5AC8D00940F__INCLUDED_
8 
9 #include "Console.h"
10 #include "ArgumentParser.h"
11 
12 // this class provides common interface to shell commands
13 class CShellCommand
14 {
15 public:
16 	CShellCommand();
17 	virtual ~CShellCommand();
18 	virtual BOOL Match(const TCHAR *pchCommand) = 0;
19 	virtual int Execute(CConsole &rConsole, CArgumentParser& rArguments) = 0;
20 	virtual const TCHAR * GetHelpString() = 0;
21 	virtual const TCHAR * GetHelpShortDescriptionString() = 0;
22 };
23 
24 #endif // !defined(SHELLCOMMAND_H__D29C1193_5942_11D4_A037_C5AC8D00940F__INCLUDED_)
25