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

TRunInformation.hh

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

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