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