00001 // ===================================================================== 00024 // ===================================================================== 00025 #ifndef CLDAQ__TDATECOMMAND_HH 00026 #define CLDAQ__TDATECOMMAND_HH 00027 00028 #include "Tglobals.h" 00029 #include "TCommand.hh" 00030 #include "TSystemClock.hh" 00031 00032 class TRunManager; 00033 class TSystemClock; 00034 00035 00055 class TDateCommand 00056 : public TCommand 00057 { 00058 00059 private: 00060 TSystemClock theSystemClock; 00061 00062 public: 00063 TDateCommand( TRunManager* manager ); 00064 ~TDateCommand(); 00065 00066 public: 00067 Tvoid Execute( const TstringList& arguments ); 00068 00069 public: 00070 const TSystemClock& GetSystemClock() const; 00071 Tvoid SetSystemClock( const TSystemClock& clock ); 00072 00073 }; 00074 00075 inline const TSystemClock& TDateCommand::GetSystemClock() const 00076 { 00077 return theSystemClock; 00078 } 00079 00080 inline Tvoid TDateCommand::SetSystemClock( const TSystemClock& clock ) 00081 { 00082 theSystemClock = clock; 00083 return; 00084 } 00085 00086 #endif