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

TRun.hh

解説を見る。
00001 // =====================================================================
00002 //  $Id: TRun.hh,v 1.1.1.1 2003/06/27 02:56:42 goiwai Exp $
00003 //  $Name: CLDAQ-1-06-00 $
00004 // =====================================================================
00005 #ifndef __TRUN_HH
00006 #define __TRUN_HH
00007 
00008 #include "Tglobals.h"
00009 #include "TEventStack.hh"
00010 
00011 class TRun
00012 {
00013 
00014   private:
00015     Tint theRunID;
00016     TEventStack theEventStack;
00017 
00018   public:
00019     TRun( Tint runid = 0 );
00020     TRun( const TEventStack& eventstack );
00021     TRun( Tint runid, const TEventStack& eventstack );
00022     TRun( const TRun& right );
00023     virtual ~TRun();
00024 
00025   public:
00026     const TRun& operator=( const TRun& right );
00027     Tbool operator==( const TRun& right ) const;
00028     Tbool operator!=( const TRun& right ) const;
00029 
00030   public:
00031     Tint GetRunID() const;
00032     Tvoid SetRunID( Tint runid );
00033     const TEventStack& GetEventStack() const;
00034     TEventStack& GetEventStack();
00035     Tvoid SetEventStack( const TEventStack& eventstack );
00036 
00037   public:
00038     virtual Tvoid Clear();
00039     virtual Tstring GetStringRunID( Tint digits = 6 ) const;
00040 
00041 };
00042 
00043 inline Tint TRun::GetRunID() const
00044 {
00045   return( theRunID );
00046 }
00047 inline const TEventStack& TRun::GetEventStack() const
00048 {
00049   return( theEventStack );
00050 }
00051 
00052 inline TEventStack& TRun::GetEventStack()
00053 {
00054   return( theEventStack );
00055 }
00056 
00057 inline Tvoid TRun::SetRunID( Tint runid )
00058 {
00059   theRunID = runid;
00060   return;
00061 }
00062 
00063 inline Tvoid TRun::SetEventStack( const TEventStack& eventstack )
00064 {
00065   theEventStack = eventstack;
00066   return;
00067 }
00068 
00069 #endif

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