00001 // ===================================================================== 00028 // ===================================================================== 00029 #ifndef CLDAQ__TANALYSISSTATUS_HH 00030 #define CLDAQ__TANALYSISSTATUS_HH 00031 00032 #include "Tglobals.h" 00033 00034 00054 class TAnalysisStatus 00055 { 00056 00057 private: 00058 Tstring theID; 00059 Tobject_t theObjectType; 00060 Tstring theDrawableObjectID; 00061 Tstring theCanvasID; 00062 Tstatus_t theStatus; 00063 Tthread_t theThreadID; 00064 00065 public: 00066 TAnalysisStatus( const Tstring& id = "", Tobject_t type = tObjectUnknown, const Tstring& objectid = "", const Tstring& canvasid = "", Tstatus_t status = tStatusUnknown ); 00067 TAnalysisStatus( const TAnalysisStatus& right ); 00068 ~TAnalysisStatus(); 00069 00070 public: 00071 const TAnalysisStatus& operator=( const TAnalysisStatus& right ); 00072 Tbool operator==( const TAnalysisStatus& right ) const; 00073 Tbool operator!=( const TAnalysisStatus& right ) const; 00074 friend Tostream& operator<<( Tostream& tos, const TAnalysisStatus& right ); 00075 00076 public: 00077 Tstatus_t GetStatus() const; 00078 Tobject_t GetObjectType() const; 00079 const Tstring& GetID() const; 00080 const Tstring& GetDrawableObjectID() const; 00081 const Tstring& GetCanvasID() const; 00082 Tstring& GetID(); 00083 Tstring& GetDrawableObjectID(); 00084 Tstring& GetCanvasID(); 00085 Tvoid SetStatus( Tstatus_t status ); 00086 Tvoid SetObjectType( Tobject_t type ); 00087 Tvoid SetID( const Tstring& id ); 00088 Tvoid SetDrawableObjectID( const Tstring& id ); 00089 Tvoid SetCanvasID( const Tstring& id ); 00090 Tthread_t* GetThreadID(); 00091 Tvoid SetThreadID( Tthread_t thread ); 00092 00093 #ifdef __CLDAQ_ROOT_DLL 00094 ClassDef(TAnalysisStatus,0) 00095 #endif 00096 00097 }; 00098 00099 inline Tstatus_t TAnalysisStatus::GetStatus() const 00100 { 00101 return theStatus; 00102 } 00103 00104 inline Tobject_t TAnalysisStatus::GetObjectType() const 00105 { 00106 return theObjectType; 00107 } 00108 00109 inline const Tstring& TAnalysisStatus::GetID() const 00110 { 00111 return theID; 00112 } 00113 00114 inline const Tstring& TAnalysisStatus::GetDrawableObjectID() const 00115 { 00116 return theDrawableObjectID; 00117 } 00118 00119 inline const Tstring& TAnalysisStatus::GetCanvasID() const 00120 { 00121 return theCanvasID; 00122 } 00123 00124 inline Tstring& TAnalysisStatus::GetID() 00125 { 00126 return theID; 00127 } 00128 00129 inline Tstring& TAnalysisStatus::GetDrawableObjectID() 00130 { 00131 return theDrawableObjectID; 00132 } 00133 00134 inline Tstring& TAnalysisStatus::GetCanvasID() 00135 { 00136 return theCanvasID; 00137 } 00138 00139 inline Tvoid TAnalysisStatus::SetStatus( Tstatus_t status ) 00140 { 00141 theStatus = status; 00142 return; 00143 } 00144 00145 inline Tvoid TAnalysisStatus::SetID( const Tstring& id ) 00146 { 00147 theID = id; 00148 return; 00149 } 00150 00151 inline Tvoid TAnalysisStatus::SetDrawableObjectID( const Tstring& id ) 00152 { 00153 theDrawableObjectID = id; 00154 return; 00155 } 00156 00157 inline Tvoid TAnalysisStatus::SetCanvasID( const Tstring& id ) 00158 { 00159 theCanvasID = id; 00160 return; 00161 } 00162 00163 inline Tthread_t* TAnalysisStatus::GetThreadID() 00164 { 00165 return &theThreadID; 00166 } 00167 00168 inline Tvoid TAnalysisStatus::SetThreadID( Tthread_t thread ) 00169 { 00170 theThreadID = thread; 00171 return; 00172 } 00173 00174 #endif