00001 // ============================================================================ 00002 // $Id: TRecordAssociationTable.cc,v 1.2 2004/03/07 10:30:27 goiwai Exp $ 00003 // $Name: CLDAQ-1-14-03 $ 00004 // $Log: TRecordAssociationTable.cc,v $ 00005 // Revision 1.2 2004/03/07 10:30:27 goiwai 00006 // ROOTに組みこむためのおまじないマクロを埋めこみました。 00007 // 全てにおいて完全に動作するわけではありません。 00008 // 00009 // Revision 1.1 2004/03/01 02:36:25 goiwai 00010 // RecordDisplay用のクラス群を置きました. 00011 // お蔵入りになってたものに手直しを加えたものですが, 00012 // まだ不充分な点も在ります.徐々に修正していきたいと思います. 00013 // DataRecordオブジェクトを表示するためのツール群なのでRecordDisplayと呼 00014 // んでいます,多分にオフライン要素が強いです. 00015 // オンラインよりにしたものを後でEventDisplay(Eventを表示)としてコミット 00016 // します. 00017 // 00018 // ============================================================================ 00019 #ifdef __CLDAQ_ROOT_USE 00020 #include "TRecordAssociationTable.hh" 00021 00022 TRecordAssociationTable::TRecordAssociationTable() 00023 : theAssociationList() 00024 {;} 00025 00026 TRecordAssociationTable::TRecordAssociationTable( const TRecordAssociationList& list ) 00027 : theAssociationList( list ) 00028 {;} 00029 00030 TRecordAssociationTable::TRecordAssociationTable( const TRecordAssociationTable& right ) 00031 : theAssociationList( right.theAssociationList ) 00032 {;} 00033 00034 TRecordAssociationTable::~TRecordAssociationTable() 00035 {;} 00036 00037 const TRecordAssociationTable& TRecordAssociationTable::operator=( const TRecordAssociationTable& right ) 00038 { 00039 theAssociationList = right.theAssociationList; 00040 return *this; 00041 } 00042 00043 Tbool TRecordAssociationTable::operator==( const TRecordAssociationTable& right ) const 00044 { 00045 Tbool retval = ( theAssociationList == right.theAssociationList ); 00046 return retval; 00047 } 00048 00049 Tbool TRecordAssociationTable::operator!=( const TRecordAssociationTable& right ) const 00050 { 00051 Tbool retval = ( theAssociationList != right.theAssociationList ); 00052 return retval; 00053 } 00054 00055 Tostream& operator<<( Tostream& tos, const TRecordAssociationTable& right ) 00056 { 00057 for ( Tsize_t i = 0; i < right.theAssociationList.size(); i ++ ) { 00058 tos << right.theAssociationList[ i ]; 00059 if ( i != right.theAssociationList.size() - 1 ) { 00060 tos << Tendl; 00061 } 00062 } 00063 tos << Tflush; 00064 00065 return tos; 00066 } 00067 00068 #endif 00069 00070 #ifdef __CLDAQ_ROOT_DLL 00071 ClassImp(TRecordAssociationTable) 00072 #endif