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