メインページ   モジュール   名前空間一覧   クラス階層   アルファベット順一覧   構成   ファイル一覧   構成メンバ   ファイルメンバ   関連ページ    

TSetRunInformationModuleCommand.cc

解説を見る。
00001 // =====================================================================
00002 //  $Id: TSetRunInformationModuleCommand.cc,v 1.5 2004/03/07 10:30:28 goiwai Exp $
00003 //  $Name: CLDAQ-1-14-03 $
00004 //  $Log: TSetRunInformationModuleCommand.cc,v $
00005 //  Revision 1.5  2004/03/07 10:30:28  goiwai
00006 //  ROOTに組みこむためのおまじないマクロを埋めこみました。
00007 //  全てにおいて完全に動作するわけではありません。
00008 //
00009 //  Revision 1.4  2003/10/06 17:02:37  goiwai
00010 //  *** empty log message ***
00011 //
00012 //  Revision 1.3  2003/08/20 21:51:44  goiwai
00013 //  少しだけ修正しました.
00014 //
00015 //    /run/setinfo foo
00016 //
00017 //  などと,間違って入力した場合なんかに, foo というエントリーがインフォメー
00018 //  ションテーブルに出来てしまう上に,それを削除できないので,無視することに
00019 //  しました.あとでちゃんと実装します.
00020 //  したがって,
00021 //
00022 //    /run/setinfo
00023 //    /run/setinfo foo bar
00024 //
00025 //  は同じ動作をします.
00026 //
00027 //  Revision 1.2  2003/07/30 16:17:32  goiwai
00028 //  ファイルにコミットログをつけることにしました.
00029 //
00030 // =====================================================================
00031 #include "TSetRunInformationModuleCommand.hh"
00032 #include "TRunManager.hh"
00033 #include "TSoftwareRunInformationModule.hh"
00034 #include "TRunInformationTable.hh"
00035 #include "TUserInterface.hh"
00036 
00037 static const Tstring _name = "/run/setinfo";
00038 static const Tstring _desc = "set run information into the table.";
00039 
00040 TSetRunInformationModuleCommand::TSetRunInformationModuleCommand( TRunManager* manager, TSoftwareRunInformationModule* module )
00041   : TCommand( manager, _name, _desc ), TRunInformationModuleCommand( module )
00042 {;}
00043 
00044 TSetRunInformationModuleCommand::~TSetRunInformationModuleCommand()
00045 {;}
00046 
00047 Tvoid TSetRunInformationModuleCommand::Execute( const TstringList& arguments )
00048 {
00049   if ( theRunInformationModule == 0 ) {
00050     return;
00051   }
00052 
00053   TRunInformationTable& table =
00054     theRunInformationModule -> GetRunInformationTable();
00055   table.SetRunInformation();
00056 
00057 //   if ( arguments.empty() ) {
00058 //     table.SetRunInformation();
00059 //   } else if ( arguments.size() == 1 ) {
00060 //     table.SetRunInformation( arguments[ 0 ] );
00061 //   } else if ( arguments.size() == 2 ) {
00062 //     table.SetRunInformation( arguments[ 0 ], arguments[ 1 ] );
00063 //   } else {
00064 //     ShowCommandDetail();
00065 //   }
00066 
00067   return;
00068 }
00069 
00070 #ifdef __CLDAQ_ROOT_DLL
00071     ClassImp(TSetRunInformationModuleCommand)
00072 #endif


CLDAQ - a Class Library for DataAcQuisition (Version 1.14.3)
Go IWAI -- goiwai at users.sourceforge.jp