メインページ   モジュール   クラス階層   アルファベット順一覧   構成   ファイル一覧   構成メンバ   ファイルメンバ   関連ページ  

TRunInformationTable.hh

解説を見る。
00001 // =====================================================================
00002 //  $Id: TRunInformationTable.hh,v 1.2 2003/07/30 16:20:31 goiwai Exp $
00003 //  $Name: CLDAQ-1-07-00 $
00004 //
00005 //  $Log: TRunInformationTable.hh,v $
00006 //  Revision 1.2  2003/07/30 16:20:31  goiwai
00007 //  ファイルにコミットログをつけることにしました.
00008 //
00009 // =====================================================================
00010 #ifndef __TRUNINFORMATIONTABLE_HH
00011 #define __TRUNINFORMATIONTABLE_HH
00012 
00013 #include "Tglobals.h"
00014 #include "TRunInformationList.hh"
00015 
00016 class TOutputHtmlFileStream;
00017 
00018 class TRunInformationTable
00019 {
00020 
00021   public:
00022     enum { tNotFound = -1 };
00023 
00024   private:
00025     TRunInformationList theRunInformationList;
00026 
00027   public:
00028     TRunInformationTable();
00029     TRunInformationTable( const TRunInformationList& infolist );
00030     TRunInformationTable( const TRunInformationTable& right );
00031     ~TRunInformationTable();
00032 
00033   public:
00034     const TRunInformationTable& operator=( const TRunInformationTable& right );
00035     Tbool operator==( const TRunInformationTable& right ) const;
00036     Tbool operator!=( const TRunInformationTable& right ) const;
00037     friend Tostream& operator<<( Tostream& tos, const TRunInformationTable& right );
00038     friend TOutputHtmlFileStream& operator<<( TOutputHtmlFileStream& html, const TRunInformationTable& right );
00039     friend TRunInformationTable operator+( const TRunInformationList& left, const TRunInformationTable& right );
00040     friend TRunInformationTable operator+( const TRunInformation& left, const TRunInformationTable& right );
00041 
00042   public:
00043     TRunInformationTable operator+( const TRunInformationTable& right ) const;
00044     TRunInformationTable operator+( const TRunInformationList& right ) const;
00045     TRunInformationTable operator+( const TRunInformation& right ) const;
00046     TRunInformationTable& operator+=( const TRunInformationTable& right );
00047     TRunInformationTable& operator+=( const TRunInformationList& right );
00048     TRunInformationTable& operator+=( const TRunInformation& right );
00049 
00050   public:
00051     const TRunInformationList& GetRunInformationList() const;
00052     TRunInformationList& GetRunInformationList();
00053     Tvoid SetRunInformationList( const TRunInformationList& infolist );
00054 
00055   public:
00056     Tint GetNumberOfRows() const;
00057     Tvoid SetRunInformation( const Tstring& item );
00058     Tvoid SetRunInformation( const Tstring& item, const Tstring& value );
00059     Tvoid SetRunInformation( const TRunInformation& runinfo );
00060     Tvoid SetRunInformation();
00061     Tvoid AddRunInformation( const Tstring& item );
00062     Tvoid AddRunInformation( const Tstring& item, const Tstring& value );
00063     Tvoid AddRunInformation( const TRunInformation& runinfo );
00064     Tvoid AddRunInformation();
00065     Tstring GetItem( const Tstring& value ) const;
00066     Tstring GetItem( Tint nrow ) const;
00067     Tstring GetValue( const Tstring& item ) const;
00068     Tstring GetValue( Tint nrow ) const;
00069     Tint FindItem( const Tstring& item ) const;
00070     Tint FindValue( const Tstring& value ) const;
00071     Tint FindRunInformation( const TRunInformation& runinfo ) const;
00072     Tbool HasItem( const Tstring& item ) const;
00073     Tbool HasRunInformation( const TRunInformation& runinfo ) const;
00074     Tvoid Remove( const Tstring& item );
00075     Tvoid Remove( const TRunInformation& runinfo );
00076     Tvoid Clear();
00077 
00078 };
00079 
00080 inline const TRunInformationList& TRunInformationTable::GetRunInformationList() const
00081 {
00082   return( theRunInformationList );
00083 }
00084 
00085 inline TRunInformationList& TRunInformationTable::GetRunInformationList()
00086 {
00087   return( theRunInformationList );
00088 }
00089 
00090 inline Tvoid TRunInformationTable::SetRunInformationList( const TRunInformationList& infolist )
00091 {
00092   theRunInformationList = infolist;
00093   return;
00094 }
00095 
00096 #endif

CLDAQ - a Class Library for Data AcQuisition (Version 1.7.0)
Go IWAI <goiwai@users.sourceforge.jp>