00001 // ===================================================================== 00002 // $Id: TReadoutSegment.hh,v 1.3 2003/07/30 16:20:11 goiwai Exp $ 00003 // $Name: CLDAQ-1-08-01 $ 00004 // 00005 // $Log: TReadoutSegment.hh,v $ 00006 // Revision 1.3 2003/07/30 16:20:11 goiwai 00007 // ファイルにコミットログをつけることにしました. 00008 // 00009 // ===================================================================== 00010 #ifndef __TREADOUTSEGMENT_HH 00011 #define __TREADOUTSEGMENT_HH 00012 00013 #include "Tglobals.h" 00014 #include "TReadoutIdentification.hh" 00015 #include "TReadoutElementList.hh" 00016 00017 class TModule; 00018 class TDataSegment; 00019 00020 class TReadoutSegment 00021 : public TReadoutIdentification, public TReadoutElementList 00022 { 00023 00024 private: 00025 TModule* theModule; 00026 00027 public: 00028 TReadoutSegment( const Tstring& id = TunknownID ); 00029 TReadoutSegment( TModule* module, const Tstring& id = TunknownID ); 00030 TReadoutSegment( TModule* module, Tint ch, const Tstring& id = TunknownID ); 00031 TReadoutSegment( TModule* module, const TstringList& elementid, const Tstring& id = TunknownID ); 00032 TReadoutSegment( TModule* module, const Tstring elementid[], const Tstring& id = TunknownID ); 00033 TReadoutSegment( const TReadoutSegment& right ); 00034 ~TReadoutSegment(); 00035 00036 public: 00037 const TReadoutSegment& operator=( const TReadoutSegment& right ); 00038 Tbool operator==( const TReadoutSegment& right ) const; 00039 Tbool operator!=( const TReadoutSegment& right ) const; 00040 00041 public: 00042 TDataSegment Read(); 00043 00044 public: 00045 TModule* GetModule() const; 00046 Tvoid SetModule( TModule* module ); 00047 00048 }; 00049 00050 inline TModule* TReadoutSegment::GetModule() const 00051 { 00052 return( theModule ); 00053 } 00054 00055 inline Tvoid TReadoutSegment::SetModule( TModule* module ) 00056 { 00057 theModule = module; 00058 return; 00059 } 00060 00061 #endif