00001 // ===================================================================== 00002 // $Id: TAnalysisStatus.hh,v 1.2 2003/07/30 16:17:10 goiwai Exp $ 00003 // $Name: CLDAQ-1-08-02 $ 00004 // 00005 // $Log: TAnalysisStatus.hh,v $ 00006 // Revision 1.2 2003/07/30 16:17:10 goiwai 00007 // ファイルにコミットログをつけることにしました. 00008 // 00009 // ===================================================================== 00010 #ifndef __TANALYSISSTATUS_HH 00011 #define __TANALYSISSTATUS_HH 00012 00013 #include "Tglobals.h" 00014 00015 class TAnalysisStatus 00016 { 00017 00018 private: 00019 Tstring theID; 00020 Tobject_t theObjectType; 00021 Tstring theDrawableObjectID; 00022 Tstring theCanvasID; 00023 Tstatus_t theStatus; 00024 Tthread_t theThreadID; 00025 00026 public: 00027 TAnalysisStatus( const Tstring& id = "", Tobject_t type = tObjectUnknown, const Tstring& objectid = "", const Tstring& canvasid = "", Tstatus_t status = tStatusUnknown ); 00028 TAnalysisStatus( const TAnalysisStatus& right ); 00029 ~TAnalysisStatus(); 00030 00031 public: 00032 const TAnalysisStatus& operator=( const TAnalysisStatus& right ); 00033 Tbool operator==( const TAnalysisStatus& right ) const; 00034 Tbool operator!=( const TAnalysisStatus& right ) const; 00035 friend Tostream& operator<<( Tostream& tos, const TAnalysisStatus& right ); 00036 00037 public: 00038 Tstatus_t GetStatus() const; 00039 Tobject_t GetObjectType() const; 00040 const Tstring& GetID() const; 00041 const Tstring& GetDrawableObjectID() const; 00042 const Tstring& GetCanvasID() const; 00043 Tstring& GetID(); 00044 Tstring& GetDrawableObjectID(); 00045 Tstring& GetCanvasID(); 00046 Tvoid SetStatus( Tstatus_t status ); 00047 Tvoid SetObjectType( Tobject_t type ); 00048 Tvoid SetID( const Tstring& id ); 00049 Tvoid SetDrawableObjectID( const Tstring& id ); 00050 Tvoid SetCanvasID( const Tstring& id ); 00051 Tthread_t* GetThreadID(); 00052 Tvoid SetThreadID( Tthread_t thread ); 00053 00054 }; 00055 00056 inline Tstatus_t TAnalysisStatus::GetStatus() const 00057 { 00058 return( theStatus ); 00059 } 00060 00061 inline Tobject_t TAnalysisStatus::GetObjectType() const 00062 { 00063 return( theObjectType ); 00064 } 00065 00066 inline const Tstring& TAnalysisStatus::GetID() const 00067 { 00068 return( theID ); 00069 } 00070 00071 inline const Tstring& TAnalysisStatus::GetDrawableObjectID() const 00072 { 00073 return( theDrawableObjectID ); 00074 } 00075 00076 inline const Tstring& TAnalysisStatus::GetCanvasID() const 00077 { 00078 return( theCanvasID ); 00079 } 00080 00081 inline Tstring& TAnalysisStatus::GetID() 00082 { 00083 return( theID ); 00084 } 00085 00086 inline Tstring& TAnalysisStatus::GetDrawableObjectID() 00087 { 00088 return( theDrawableObjectID ); 00089 } 00090 00091 inline Tstring& TAnalysisStatus::GetCanvasID() 00092 { 00093 return( theCanvasID ); 00094 } 00095 00096 inline Tvoid TAnalysisStatus::SetStatus( Tstatus_t status ) 00097 { 00098 theStatus = status; 00099 return; 00100 } 00101 00102 inline Tvoid TAnalysisStatus::SetID( const Tstring& id ) 00103 { 00104 theID = id; 00105 return; 00106 } 00107 00108 inline Tvoid TAnalysisStatus::SetDrawableObjectID( const Tstring& id ) 00109 { 00110 theDrawableObjectID = id; 00111 return; 00112 } 00113 00114 inline Tvoid TAnalysisStatus::SetCanvasID( const Tstring& id ) 00115 { 00116 theCanvasID = id; 00117 return; 00118 } 00119 00120 inline Tthread_t* TAnalysisStatus::GetThreadID() 00121 { 00122 return( &theThreadID ); 00123 } 00124 00125 inline Tvoid TAnalysisStatus::SetThreadID( Tthread_t thread ) 00126 { 00127 theThreadID = thread; 00128 return; 00129 } 00130 00131 #endif