00001 // ===================================================================== 00002 // $Id: TDateCommand.cc,v 1.4 2004/03/07 10:30:28 goiwai Exp $ 00003 // $Name: CLDAQ-1-14-03 $ 00004 // $Log: TDateCommand.cc,v $ 00005 // Revision 1.4 2004/03/07 10:30:28 goiwai 00006 // ROOTに組みこむためのおまじないマクロを埋めこみました。 00007 // 全てにおいて完全に動作するわけではありません。 00008 // 00009 // Revision 1.3 2003/10/06 17:02:37 goiwai 00010 // *** empty log message *** 00011 // 00012 // Revision 1.2 2003/07/30 16:17:31 goiwai 00013 // ファイルにコミットログをつけることにしました. 00014 // 00015 // ===================================================================== 00016 #include "TDateCommand.hh" 00017 00018 static const Tstring _name = "/system/date"; 00019 static const Tstring _desc = "print date and time information."; 00020 00021 TDateCommand::TDateCommand( TRunManager* manager ) 00022 : TCommand( manager, _name, _desc ), theSystemClock() 00023 {;} 00024 00025 TDateCommand::~TDateCommand() 00026 {;} 00027 00028 Tvoid TDateCommand::Execute( const TstringList& arguments ) 00029 { 00030 Tcout << theSystemClock.WhatTimeIsItNow() << Tendl; 00031 return; 00032 } 00033 00034 #ifdef __CLDAQ_ROOT_DLL 00035 ClassImp(TDateCommand) 00036 #endif