00001 // ===================================================================== 00002 // $Id: TSoftwareRunInformationModule.hh,v 1.1.1.1 2003/06/27 02:56:41 goiwai Exp $ 00003 // $Name: CLDAQ-1-06-00 $ 00004 // ===================================================================== 00005 #ifndef __TSOFTWARERUNINFORMATIONMODULE_HH 00006 #define __TSOFTWARERUNINFORMATIONMODULE_HH 00007 00008 #include "Tglobals.h" 00009 #include "TSoftwareModule.hh" 00010 #include "TRunInformationTable.hh" 00011 00012 class TDataSegment; 00013 class TDataElement; 00014 00015 class TSoftwareRunInformationModule 00016 : public TSoftwareModule 00017 { 00018 00019 private: 00020 TRunInformationTable theRunInformationTable; 00021 00022 public: 00023 TSoftwareRunInformationModule(); 00024 TSoftwareRunInformationModule( const TRunInformationTable& table ); 00025 TSoftwareRunInformationModule( const TSoftwareRunInformationModule& right ); 00026 ~TSoftwareRunInformationModule(); 00027 00028 public: 00029 Tint Clear(); 00030 Tint Update(); 00031 Tint Initialize(); 00032 Tvoid FillData( TDataElement& element, Tint channel ); 00033 00034 public: 00035 const TSoftwareRunInformationModule& operator=( const TSoftwareRunInformationModule& right ); 00036 Tbool operator==( const TSoftwareRunInformationModule& right ) const; 00037 Tbool operator!=( const TSoftwareRunInformationModule& right ) const; 00038 00039 public: 00040 TRunInformationTable& GetRunInformationTable(); 00041 const TRunInformationTable& GetRunInformationTable() const; 00042 Tvoid SetRunInformationTable( const TRunInformationTable& table ); 00043 00044 }; 00045 00046 inline TRunInformationTable& TSoftwareRunInformationModule::GetRunInformationTable() 00047 { 00048 return( theRunInformationTable ); 00049 } 00050 00051 inline const TRunInformationTable& TSoftwareRunInformationModule::GetRunInformationTable() const 00052 { 00053 return( theRunInformationTable ); 00054 } 00055 00056 inline Tvoid TSoftwareRunInformationModule::SetRunInformationTable( const TRunInformationTable& table ) 00057 { 00058 theRunInformationTable = table; 00059 theNumberOfChannels = theRunInformationTable.GetNumberOfRows(); 00060 return; 00061 } 00062 00063 #endif