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