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

TRunInformation.hh

解説を見る。
00001 // =====================================================================
00028 // =====================================================================
00029 #ifndef CLDAQ__TRUNINFORMATION_HH
00030 #define CLDAQ__TRUNINFORMATION_HH
00031 
00032 #include "Tglobals.h"
00033 
00034 class TOutputHtmlFileStream;
00035 
00036 
00056 class TRunInformation
00057 {
00058 
00059   private:
00060     Truninfo_t theInformationType;
00061     Tstring theItem;
00062     Tstring theDefaultValue;
00063     Tstring theValue;
00064     TstringList theSelectableList;
00065 
00066   public:
00067     TRunInformation();
00068     TRunInformation( const Tstring& item );
00069     TRunInformation( const Tstring& item, Truninfo_t type );
00070     TRunInformation( const Tstring& item, const TstringList& list );
00071     TRunInformation( const Tstring& item, const Tstring& value );
00072     TRunInformation( const Tstring& item, const Tstring& value, Truninfo_t type );
00073     TRunInformation( const Tstring& item, const Tstring& value, const TstringList& list );
00074     TRunInformation( const TRunInformation& right );
00075     ~TRunInformation();
00076 
00077   public:
00078     const TRunInformation& operator=( const TRunInformation& right );
00079     Tbool operator==( const TRunInformation& right ) const;
00080     Tbool operator!=( const TRunInformation& right ) const;
00081     friend Tostream& operator<<( Tostream& tos, const TRunInformation& right );
00082     friend TOutputHtmlFileStream& operator<<( TOutputHtmlFileStream& html, const TRunInformation& right );
00083     friend Tvoid SetInformation( TRunInformation& info );
00084 
00085   public:
00086     Truninfo_t GetInformationType() const;
00087     const Tstring& GetItem() const;
00088     const Tstring& GetDefaultValue() const;
00089     const Tstring& GetValue() const;
00090     const TstringList& GetSelectableList() const;
00091     Tvoid SetInformationType( Truninfo_t info );
00092     Tvoid SetItem( const Tstring& item );
00093     Tvoid SetDefaultValue( const Tstring& value );
00094     Tvoid SetValue( const Tstring& value );
00095     Tvoid SetSelectableList( const TstringList& list );
00096 
00097   public:
00098     Tvoid Clear();
00099 
00100   private:
00101     Tvoid setFreeValue();
00102     Tvoid setSelectableValue();
00103     Tvoid setFreeText();
00104     Tvoid setInformation();
00105 
00106 #ifdef __CLDAQ_ROOT_DLL
00107     ClassDef(TRunInformation,0)
00108 #endif
00109 
00110 };
00111 
00112 inline Truninfo_t TRunInformation::GetInformationType() const
00113 {
00114   return theInformationType;
00115 }
00116 
00117 inline const Tstring& TRunInformation::GetItem() const
00118 {
00119   return theItem;
00120 }
00121 
00122 inline const Tstring& TRunInformation::GetDefaultValue() const
00123 {
00124   return theDefaultValue;
00125 }
00126 
00127 inline const Tstring& TRunInformation::GetValue() const
00128 {
00129   return theValue;
00130 }
00131 
00132 inline const TstringList& TRunInformation::GetSelectableList() const
00133 {
00134   return theSelectableList;
00135 }
00136 
00137 inline Tvoid TRunInformation::SetInformationType( Truninfo_t info )
00138 {
00139   theInformationType = info;
00140   return;
00141 }
00142 
00143 inline Tvoid TRunInformation::SetItem( const Tstring& item )
00144 {
00145   theItem = item;
00146   return;
00147 }
00148 
00149 inline Tvoid TRunInformation::SetDefaultValue( const Tstring& value )
00150 {
00151   theDefaultValue = value;
00152   return;
00153 }
00154 
00155 inline Tvoid TRunInformation::SetValue( const Tstring& value )
00156 {
00157   theValue = value;
00158   return;
00159 }
00160 
00161 inline Tvoid TRunInformation::SetSelectableList( const TstringList& list )
00162 {
00163   theSelectableList = list;
00164   theInformationType = tInfoSelectableValue;
00165   return;
00166 }
00167 
00168 #endif


CLDAQ - a Class Library for DataAcQuisition (Version 1.14.3)
Go IWAI -- goiwai at users.sourceforge.jp