Add Dirk Luetjen's ssphys libraries and command-line tool
[vss2svn.git] / ssphys / SSPhys / Command.h
blob088968d39cb5af178606b7e9dbbf86357455bd8f
1 // Command.h: interface for the CCommand class.
2 //
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_COMMAND_H__A42CF41F_0E40_40BA_A36B_CAAEC8A6D34E__INCLUDED_)
6 #define AFX_COMMAND_H__A42CF41F_0E40_40BA_A36B_CAAEC8A6D34E__INCLUDED_
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
12 #include "Options.h"
13 #include "Arguments.h"
15 //---------------------------------------------------------------------------
16 class CCommand : public COptions
18 public:
19 CCommand (std::string commandName);
20 virtual ~CCommand ();
22 std::string GetCommandName () const
24 return m_CommandName;
27 virtual bool SetArguments (CArguments& args)
29 return false;
32 virtual void Execute () = 0;
34 virtual void PrintUsage () const;
36 protected:
37 std::string m_CommandName;
43 #endif // !defined(AFX_COMMAND_H__A42CF41F_0E40_40BA_A36B_CAAEC8A6D34E__INCLUDED_)