00001 // ===================================================================== 00002 // $Id: TStreamableObject.cc,v 1.4 2004/03/07 10:30:30 goiwai Exp $ 00003 // $Name: CLDAQ-1-14-03 $ 00004 // $Log: TStreamableObject.cc,v $ 00005 // Revision 1.4 2004/03/07 10:30:30 goiwai 00006 // ROOTに組みこむためのおまじないマクロを埋めこみました。 00007 // 全てにおいて完全に動作するわけではありません。 00008 // 00009 // Revision 1.3 2003/10/06 16:42:19 goiwai 00010 // *** empty log message *** 00011 // 00012 // Revision 1.2 2003/07/30 16:17:51 goiwai 00013 // ファイルにコミットログをつけることにしました. 00014 // 00015 // ===================================================================== 00016 #include "TStreamableObject.hh" 00017 00018 TStreamableObject::TStreamableObject( Tobject_t objecttype, const Tstring& id ) 00019 : theObjectType( objecttype ), theID( id ) 00020 {;} 00021 00022 TStreamableObject::TStreamableObject( const TStreamableObject& right ) 00023 : theObjectType( right.theObjectType ), theID( right.theID ) 00024 {;} 00025 00026 TStreamableObject::~TStreamableObject() 00027 {;} 00028 00029 const TStreamableObject& TStreamableObject::operator=( const TStreamableObject& right ) 00030 { 00031 theObjectType = right.theObjectType; 00032 theID = right.theID; 00033 return *this; 00034 } 00035 00036 Tbool TStreamableObject::operator==( const TStreamableObject& right ) const 00037 { 00038 if ( theObjectType == right.theObjectType && theID == right.theID ) { 00039 return Ttrue; 00040 } else { 00041 return Tfalse; 00042 } 00043 } 00044 00045 Tbool TStreamableObject::operator!=( const TStreamableObject& right ) const 00046 { 00047 if ( theObjectType != right.theObjectType || theID != right.theID ) { 00048 return Ttrue; 00049 } else { 00050 return Tfalse; 00051 } 00052 } 00053 00054 #ifdef __CLDAQ_ROOT_DLL 00055 ClassImp(TStreamableObject) 00056 #endif