00001 // ===================================================================== 00002 // $Id: TDateCommand.hh,v 1.2 2003/07/30 16:17:31 goiwai Exp $ 00003 // $Name: CLDAQ-1-08-00 $ 00004 // 00005 // $Log: TDateCommand.hh,v $ 00006 // Revision 1.2 2003/07/30 16:17:31 goiwai 00007 // ファイルにコミットログをつけることにしました. 00008 // 00009 // ===================================================================== 00010 #ifndef __TDATECOMMAND_HH 00011 #define __TDATECOMMAND_HH 00012 00013 #include "Tglobals.h" 00014 #include "TCommand.hh" 00015 #include "TSystemClock.hh" 00016 00017 class TRunManager; 00018 class TSystemClock; 00019 00020 class TDateCommand 00021 : public TCommand 00022 { 00023 00024 private: 00025 TSystemClock theSystemClock; 00026 00027 public: 00028 TDateCommand( TRunManager* manager ); 00029 ~TDateCommand(); 00030 00031 public: 00032 Tvoid Execute( const TstringList& arguments ); 00033 00034 public: 00035 const TSystemClock& GetSystemClock() const; 00036 Tvoid SetSystemClock( const TSystemClock& clock ); 00037 00038 }; 00039 00040 inline const TSystemClock& TDateCommand::GetSystemClock() const 00041 { 00042 return( theSystemClock ); 00043 } 00044 00045 inline Tvoid TDateCommand::SetSystemClock( const TSystemClock& clock ) 00046 { 00047 theSystemClock = clock; 00048 return; 00049 } 00050 00051 #endif