00001 // ===================================================================== 00002 // $Id: TCommand.cc,v 1.4 2004/03/07 10:30:28 goiwai Exp $ 00003 // $Name: CLDAQ-1-14-03 $ 00004 // $Log: TCommand.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:30 goiwai 00013 // ファイルにコミットログをつけることにしました. 00014 // 00015 // ===================================================================== 00016 #include "TCommand.hh" 00017 #include "TRunManager.hh" 00018 00019 TCommand::TCommand( TRunManager* manager, const Tstring& name, const Tstring& guidance ) 00020 : theRunManager( manager ), theCommandName( name ), theGuidance( guidance ) 00021 {;} 00022 TCommand::TCommand( const Tstring& name, const Tstring& guidance ) 00023 : theRunManager( 0 ), theCommandName( name ), theGuidance( guidance ) 00024 {;} 00025 00026 TCommand::~TCommand() 00027 {;} 00028 00029 Tvoid TCommand::ShowCommandDetail() const 00030 { 00031 Tcout << "[" << theCommandName << "]" << Tendl; 00032 Tcout << theGuidance << Tendl; 00033 return; 00034 } 00035 00036 Tvoid TCommand::Execute( const TstringList& arguments ) 00037 { 00038 Tcout << theCommandName << " is not implemented." << Tendl; 00039 return; 00040 } 00041 00042 #ifdef __CLDAQ_ROOT_DLL 00043 ClassImp(TCommand) 00044 #endif