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