00001 #ifndef CCOMMAND_H 00002 #define CCOMMAND_H 00003 00004 #include <MDSTk/Base/mdsSetup.h> 00005 #include <MDSTk/base/mdsObject.h> 00006 #include <MDSTk/base/mdsSharedPtr.h> 00007 00008 #include <string> 00009 00010 namespace cmd 00011 { 00012 class CCommand : public mds::base::CObject 00013 { 00014 public : 00015 00016 00018 MDS_SHAREDPTR( CCommand ); 00019 00020 public : 00021 00023 CCommand() 00024 { 00025 } 00026 00028 virtual ~CCommand() 00029 { 00030 } 00031 00032 }; 00033 00034 class CErrorNotify : public CCommand 00035 { 00036 protected : 00037 00038 std::string sError; 00039 00040 public : 00041 00042 CErrorNotify( const std::string & text ) : 00043 sError( text ) 00044 { 00045 } 00046 00047 virtual ~CErrorNotify() 00048 { 00049 } 00050 00051 std::string get() 00052 { 00053 return sError; 00054 } 00055 }; 00056 00057 class CEmptyCommand : public CCommand 00058 { 00059 public : 00060 00061 CEmptyCommand() : CCommand() 00062 { 00063 } 00064 00065 virtual ~CEmptyCommand() 00066 { 00067 } 00068 }; 00069 } 00070 00071 #endif // CCOMMAND_H