00001 // ===================================================================== 00028 // ===================================================================== 00029 #ifndef CLDAQ__TDATECOMMAND_HH 00030 #define CLDAQ__TDATECOMMAND_HH 00031 00032 #include "Tglobals.h" 00033 #include "TCommand.hh" 00034 #include "TSystemClock.hh" 00035 00036 class TRunManager; 00037 class TSystemClock; 00038 00039 00059 class TDateCommand 00060 : public TCommand 00061 { 00062 00063 private: 00064 TSystemClock theSystemClock; 00065 00066 public: 00067 TDateCommand( TRunManager* manager ); 00068 ~TDateCommand(); 00069 00070 public: 00071 Tvoid Execute( const TstringList& arguments ); 00072 00073 public: 00074 const TSystemClock& GetSystemClock() const; 00075 Tvoid SetSystemClock( const TSystemClock& clock ); 00076 00077 #ifdef __CLDAQ_ROOT_DLL 00078 ClassDef(TDateCommand,0) 00079 #endif 00080 00081 }; 00082 00083 inline const TSystemClock& TDateCommand::GetSystemClock() const 00084 { 00085 return theSystemClock; 00086 } 00087 00088 inline Tvoid TDateCommand::SetSystemClock( const TSystemClock& clock ) 00089 { 00090 theSystemClock = clock; 00091 return; 00092 } 00093 00094 #endif