00001 // ===================================================================== 00002 // $Id: TReadoutBook.hh,v 1.2 2003/07/30 16:20:11 goiwai Exp $ 00003 // $Name: CLDAQ-1-08-02 $ 00004 // 00005 // $Log: TReadoutBook.hh,v $ 00006 // Revision 1.2 2003/07/30 16:20:11 goiwai 00007 // ファイルにコミットログをつけることにしました. 00008 // 00009 // ===================================================================== 00010 #ifndef __TREADOUTBOOK_HH 00011 #define __TREADOUTBOOK_HH 00012 00013 #include "Tglobals.h" 00014 #include "TReadoutIndex.hh" 00015 00016 class TReadoutList; 00017 class TDataRecord; 00018 00019 class TReadoutBook 00020 { 00021 00022 private: 00023 TReadoutIndex theReadoutIndex; 00024 00025 public: 00026 TReadoutBook(); 00027 ~TReadoutBook(); 00028 00029 public: 00030 const TReadoutIndex& GetReadoutIndex() const; 00031 TReadoutIndex& GetReadoutIndex(); 00032 Tvoid SetReadoutIndex( const TReadoutIndex& index ); 00033 00034 public: 00035 Tint AddReadoutList( TReadoutList* readoutlist ); 00036 Tint RemoveReadoutList( Tint index ); 00037 Tint RemoveReadoutList( const Tstring& id ); 00038 Tvoid ClearReadoutBook(); 00039 TReadoutList* FindReadoutList( const Tstring& id ); 00040 TReadoutList* GetReadoutList( Tint index ); 00041 TReadoutList* GetReadoutList( const Tstring& id ); 00042 TDataRecord Read( const Tstring& id ); 00043 00044 }; 00045 00046 inline const TReadoutIndex& TReadoutBook::GetReadoutIndex() const 00047 { 00048 return( theReadoutIndex ); 00049 } 00050 00051 inline TReadoutIndex& TReadoutBook::GetReadoutIndex() 00052 { 00053 return( theReadoutIndex ); 00054 } 00055 00056 inline Tvoid TReadoutBook::SetReadoutIndex( const TReadoutIndex& index ) 00057 { 00058 theReadoutIndex = index; 00059 return; 00060 } 00061 00062 #endif