00001 // ===================================================================== 00002 // $Id: TModuleSpecified.hh,v 1.2 2003/07/30 16:19:10 goiwai Exp $ 00003 // $Name: CLDAQ-1-08-00 $ 00004 // 00005 // $Log: TModuleSpecified.hh,v $ 00006 // Revision 1.2 2003/07/30 16:19:10 goiwai 00007 // ファイルにコミットログをつけることにしました. 00008 // 00009 // ===================================================================== 00010 #ifndef __TMODULESPECIFIED_HH 00011 #define __TMODULESPECIFIED_HH 00012 00013 #include "Tglobals.h" 00014 00015 class TModule; 00016 00017 class TModuleSpecified 00018 { 00019 00020 private: 00021 Tstring theModuleID; 00022 TstringList theGroupIDs; 00023 TModule* theModule; 00024 00025 public: 00026 TModuleSpecified(); 00027 TModuleSpecified( const Tstring& id, const TstringList& groups, TModule* module ); 00028 TModuleSpecified( const TModuleSpecified& right ); 00029 ~TModuleSpecified(); 00030 00031 public: 00032 const TModuleSpecified& operator=( const TModuleSpecified& right ); 00033 Tbool operator==( const TModuleSpecified& right ) const; 00034 Tbool operator!=( const TModuleSpecified& right ) const; 00035 friend Tostream& operator<<( Tostream& tos, const TModuleSpecified& right ); 00036 00037 public: 00038 const Tstring& GetModuleID() const; 00039 Tstring& GetModuleID(); 00040 const TstringList& GetGroupIDs() const; 00041 TstringList& GetGroupIDs(); 00042 TModule* GetModule() const; 00043 Tvoid SetModuleID( const Tstring& id ); 00044 Tvoid SetGroupIDs( const TstringList& ids ); 00045 Tvoid SetModule( TModule* module ); 00046 Tbool IsSameGroup( const TModuleSpecified& spec ); 00047 Tbool IsSameGroup( const TstringList& groups ); 00048 Tbool IsSameGroup( const Tstring& group ); 00049 00050 }; 00051 00052 inline const Tstring& TModuleSpecified::GetModuleID() const 00053 { 00054 return( theModuleID ); 00055 } 00056 00057 inline Tstring& TModuleSpecified::GetModuleID() 00058 { 00059 return( theModuleID ); 00060 } 00061 00062 inline const TstringList& TModuleSpecified::GetGroupIDs() const 00063 { 00064 return( theGroupIDs ); 00065 } 00066 00067 inline TstringList& TModuleSpecified::GetGroupIDs() 00068 { 00069 return( theGroupIDs ); 00070 } 00071 00072 inline TModule* TModuleSpecified::GetModule() const 00073 { 00074 return( theModule ); 00075 } 00076 00077 inline Tvoid TModuleSpecified::SetModuleID( const Tstring& id ) 00078 { 00079 theModuleID = id; 00080 return; 00081 } 00082 00083 inline Tvoid TModuleSpecified::SetGroupIDs( const TstringList& ids ) 00084 { 00085 theGroupIDs = ids; 00086 return; 00087 } 00088 00089 inline Tvoid TModuleSpecified::SetModule( TModule* module ) 00090 { 00091 theModule = module; 00092 return; 00093 } 00094 00095 #endif