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

TRun.hh

解説を見る。
00001 // =====================================================================
00002 //  $Id: TRun.hh,v 1.6 2003/07/30 16:20:30 goiwai Exp $
00003 //  $Name: CLDAQ-1-07-01 $
00004 //
00005 //  $Log: TRun.hh,v $
00006 //  Revision 1.6  2003/07/30 16:20:30  goiwai
00007 //  ファイルにコミットログをつけることにしました.
00008 //
00009 // =====================================================================
00010 #ifndef __TRUN_HH
00011 #define __TRUN_HH
00012 
00013 #include "Tglobals.h"
00014 #include "TEventStack.hh"
00015 
00016 class TRun
00017 {
00018 
00019   private:
00020     Tint theRunID;
00021     TEventStack theEventStack;
00022 
00023   public:
00024     TRun( Tint runid = 0 );
00025     TRun( const TEventStack& eventstack );
00026     TRun( Tint runid, const TEventStack& eventstack );
00027     TRun( const TRun& right );
00028     virtual ~TRun();
00029 
00030   public:
00031     const TRun& operator=( const TRun& right );
00032     Tbool operator==( const TRun& right ) const;
00033     Tbool operator!=( const TRun& right ) const;
00034 
00035   public:
00036     Tint GetRunID() const;
00037     Tvoid SetRunID( Tint runid );
00038     const TEventStack& GetEventStack() const;
00039     TEventStack& GetEventStack();
00040     Tvoid SetEventStack( const TEventStack& eventstack );
00041 
00042   public:
00043     virtual Tvoid Clear();
00044     virtual Tstring GetStringRunID( Tint digits = 6 ) const;
00045 
00046 };
00047 
00048 inline Tint TRun::GetRunID() const
00049 {
00050   return( theRunID );
00051 }
00052 inline const TEventStack& TRun::GetEventStack() const
00053 {
00054   return( theEventStack );
00055 }
00056 
00057 inline TEventStack& TRun::GetEventStack()
00058 {
00059   return( theEventStack );
00060 }
00061 
00062 inline Tvoid TRun::SetRunID( Tint runid )
00063 {
00064   theRunID = runid;
00065   return;
00066 }
00067 
00068 inline Tvoid TRun::SetEventStack( const TEventStack& eventstack )
00069 {
00070   theEventStack = eventstack;
00071   return;
00072 }
00073 
00074 #endif

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