00001 // ===================================================================== 00002 // $Id: TReadoutList.cc,v 1.4 2004/03/07 10:30:33 goiwai Exp $ 00003 // $Name: CLDAQ-1-14-03 $ 00004 // $Log: TReadoutList.cc,v $ 00005 // Revision 1.4 2004/03/07 10:30:33 goiwai 00006 // ROOTに組みこむためのおまじないマクロを埋めこみました。 00007 // 全てにおいて完全に動作するわけではありません。 00008 // 00009 // Revision 1.3 2003/10/06 16:39:00 goiwai 00010 // *** empty log message *** 00011 // 00012 // Revision 1.2 2003/07/30 16:20:11 goiwai 00013 // ファイルにコミットログをつけることにしました. 00014 // 00015 // ===================================================================== 00016 #include "TReadoutList.hh" 00017 #include "TDataRecord.hh" 00018 00019 TReadoutList::TReadoutList( const Tstring& id ) 00020 : TReadoutIdentification( id ), TReadoutSectionList() 00021 {;} 00022 00023 TReadoutList::TReadoutList( const TReadoutList& right ) 00024 : TReadoutIdentification( right ), TReadoutSectionList( right ) 00025 {;} 00026 00027 TReadoutList::~TReadoutList() 00028 {;} 00029 00030 TDataRecord TReadoutList::Read() 00031 { 00032 TDataRecord record( theID ); 00033 00034 for ( Tsize_t i = 0; i < size(); i ++ ) { 00035 record.push_back( ( (*this)[ i ] ).Read() ); 00036 } 00037 00038 return record; 00039 } 00040 00041 const TReadoutList& TReadoutList::operator=( const TReadoutList& right ) 00042 { 00043 *( (TReadoutIdentification*)this ) = *( (TReadoutIdentification*)(&right) ); 00044 *( (TReadoutSectionList*)this ) = *( (TReadoutSectionList*)(&right) ); 00045 return *this; 00046 } 00047 00048 Tbool TReadoutList::operator==( const TReadoutList& right ) const 00049 { 00050 Tbool ret = Ttrue; 00051 ret &= ( *( (TReadoutIdentification*)this ) == *( (TReadoutIdentification*)(&right) ) ); 00052 ret &= ( *( (TReadoutSectionList*)this ) == *( (TReadoutSectionList*)(&right) ) ); 00053 return ret; 00054 } 00055 00056 Tbool TReadoutList::operator!=( const TReadoutList& right ) const 00057 { 00058 Tbool ret = Tfalse; 00059 ret |= ( *( (TReadoutIdentification*)this ) != *( (TReadoutIdentification*)(&right) ) ); 00060 ret |= ( *( (TReadoutSectionList*)this ) != *( (TReadoutSectionList*)(&right) ) ); 00061 return ret; 00062 } 00063 00064 #ifdef __CLDAQ_ROOT_DLL 00065 ClassImp(TReadoutList) 00066 #endif