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

TRunInformation.hh

解説を見る。
00001 // =====================================================================
00002 //  $Id: TRunInformation.hh,v 1.1.1.1 2003/06/27 02:56:42 goiwai Exp $
00003 //  $Name: CLDAQ-1-06-02 $
00004 // =====================================================================
00005 #ifndef __TRUNINFORMATION_HH
00006 #define __TRUNINFORMATION_HH
00007 
00008 #include "Tglobals.h"
00009 
00010 class TOutputHtmlFileStream;
00011 
00012 class TRunInformation
00013 {
00014 
00015   private:
00016     Truninfo_t theInformationType;
00017     Tstring theItem;
00018     Tstring theDefaultValue;
00019     Tstring theValue;
00020     TstringList theSelectableList;
00021 
00022   public:
00023     TRunInformation();
00024     TRunInformation( const Tstring& item );
00025     TRunInformation( const Tstring& item, Truninfo_t type );
00026     TRunInformation( const Tstring& item, const TstringList& list );
00027     TRunInformation( const Tstring& item, const Tstring& value );
00028     TRunInformation( const Tstring& item, const Tstring& value, Truninfo_t type );
00029     TRunInformation( const Tstring& item, const Tstring& value, const TstringList& list );
00030     TRunInformation( const TRunInformation& right );
00031     ~TRunInformation();
00032 
00033   public:
00034     const TRunInformation& operator=( const TRunInformation& right );
00035     Tbool operator==( const TRunInformation& right ) const;
00036     Tbool operator!=( const TRunInformation& right ) const;
00037     friend Tostream& operator<<( Tostream& tos, const TRunInformation& right );
00038     friend TOutputHtmlFileStream& operator<<( TOutputHtmlFileStream& html, const TRunInformation& right );
00039     friend Tvoid SetInformation( TRunInformation& info );
00040 
00041   public:
00042     Truninfo_t GetInformationType() const;
00043     const Tstring& GetItem() const;
00044     const Tstring& GetDefaultValue() const;
00045     const Tstring& GetValue() const;
00046     const TstringList& GetSelectableList() const;
00047     Tvoid SetInformationType( Truninfo_t info );
00048     Tvoid SetItem( const Tstring& item );
00049     Tvoid SetDefaultValue( const Tstring& value );
00050     Tvoid SetValue( const Tstring& value );
00051     Tvoid SetSelectableList( const TstringList& list );
00052 
00053   public:
00054     Tvoid Clear();
00055 
00056   private:
00057     Tvoid setFreeValue();
00058     Tvoid setSelectableValue();
00059     Tvoid setFreeText();
00060     Tvoid setInformation();
00061 
00062 };
00063 
00064 inline Truninfo_t TRunInformation::GetInformationType() const
00065 {
00066   return( theInformationType );
00067 }
00068 
00069 inline const Tstring& TRunInformation::GetItem() const
00070 {
00071   return( theItem );
00072 }
00073 
00074 inline const Tstring& TRunInformation::GetDefaultValue() const
00075 {
00076   return( theDefaultValue );
00077 }
00078 
00079 inline const Tstring& TRunInformation::GetValue() const
00080 {
00081   return( theValue );
00082 }
00083 
00084 inline const TstringList& TRunInformation::GetSelectableList() const
00085 {
00086   return( theSelectableList );
00087 }
00088 
00089 inline Tvoid TRunInformation::SetInformationType( Truninfo_t info )
00090 {
00091   theInformationType = info;
00092   return;
00093 }
00094 
00095 inline Tvoid TRunInformation::SetItem( const Tstring& item )
00096 {
00097   theItem = item;
00098   return;
00099 }
00100 
00101 inline Tvoid TRunInformation::SetDefaultValue( const Tstring& value )
00102 {
00103   theDefaultValue = value;
00104   return;
00105 }
00106 
00107 inline Tvoid TRunInformation::SetValue( const Tstring& value )
00108 {
00109   theValue = value;
00110   return;
00111 }
00112 
00113 inline Tvoid TRunInformation::SetSelectableList( const TstringList& list )
00114 {
00115   theSelectableList = list;
00116   theInformationType = tInfoSelectableValue;
00117   return;
00118 }
00119 
00120 #endif

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