00001 // ===================================================================== 00002 // $Id: TDateCommand.hh,v 1.1.1.1 2003/06/27 02:56:41 goiwai Exp $ 00003 // $Name: CLDAQ-1-06-00 $ 00004 // ===================================================================== 00005 #ifndef __TDATECOMMAND_HH 00006 #define __TDATECOMMAND_HH 00007 00008 #include "Tglobals.h" 00009 #include "TCommand.hh" 00010 #include "TSystemClock.hh" 00011 00012 class TRunManager; 00013 class TSystemClock; 00014 00015 class TDateCommand 00016 : public TCommand 00017 { 00018 00019 private: 00020 TSystemClock theSystemClock; 00021 00022 public: 00023 TDateCommand( TRunManager* manager ); 00024 ~TDateCommand(); 00025 00026 public: 00027 Tvoid Execute( const TstringList& arguments ); 00028 00029 public: 00030 const TSystemClock& GetSystemClock() const; 00031 Tvoid SetSystemClock( const TSystemClock& clock ); 00032 00033 }; 00034 00035 inline const TSystemClock& TDateCommand::GetSystemClock() const 00036 { 00037 return( theSystemClock ); 00038 } 00039 00040 inline Tvoid TDateCommand::SetSystemClock( const TSystemClock& clock ) 00041 { 00042 theSystemClock = clock; 00043 return; 00044 } 00045 00046 #endif