00001 /* ${copyright}$ */ 00002 /* $Id: BrOrgInfoRsp.H 789 2006-07-18 18:39:47Z cleber $ */ 00007 #ifndef __BR_ORG_INFO_RSP_H__ 00008 #define __BR_ORG_INFO_RSP_H__ 00009 00010 #include <string> 00011 #include <map> 00012 #include <set> 00013 #include <memory> 00014 00015 #include "libepp_nicbr.H" 00016 00017 #include "ContactInfoRsp.H" 00018 00019 using std::string; 00020 using std::map; 00021 using std::set; 00022 using std::auto_ptr; 00023 00024 LIBEPP_NICBR_NS_BEGIN 00025 00027 class BrOrgInfoRsp : public ContactInfoRsp 00028 { 00029 public: 00031 BrOrgInfoRsp(bool reset = true) : ContactInfoRsp(false) 00032 { 00033 if (reset) { 00034 this->reset(); 00035 } 00036 } 00037 00039 void copy_parent_data(ContactInfoRsp &parent) 00040 { 00041 _roid = parent.get_roid(); 00042 _status_set = parent.get_status_set(); 00043 _clID = parent.get_clID(); 00044 _crID = parent.get_crID(); 00045 _crDate = parent.get_crDate(); 00046 _upID = parent.get_upID(); 00047 _upDate = parent.get_upDate(); 00048 _trDate = parent.get_trDate(); 00049 _common = parent.get_common_data(); 00050 _authInfo = parent.get_authInfo(); 00051 } 00052 00054 00057 void set_organization(const string &organization) 00058 { 00059 _organization = organization; 00060 } 00061 00063 00066 string get_organization() 00067 { 00068 return _organization; 00069 } 00070 00071 00073 00076 void set_responsible(const string &responsible) 00077 { 00078 _responsible = responsible; 00079 } 00080 00082 00085 string get_responsible() { return _responsible; }; 00086 00088 00092 void insert_contact(const string &type, const string &id) 00093 { 00094 _contact_list[type] = id; 00095 } 00096 00098 00101 map< string, string, less<string> > get_contact_list() 00102 { 00103 return _contact_list; 00104 } 00105 00107 00110 void set_proxy(const string &proxy) 00111 { 00112 _proxy = proxy; 00113 } 00114 00116 00119 string get_proxy() 00120 { 00121 return _proxy; 00122 } 00123 00125 00128 void insert_domainName(const string &fqdn) 00129 { 00130 _domain_list.insert(fqdn); 00131 } 00132 00134 00137 set<string> get_domainName_list() 00138 { 00139 return _domain_list; 00140 } 00141 00143 void reset() { 00144 ContactInfoRsp::reset(); 00145 _organization = ""; 00146 _responsible = ""; 00147 _proxy = ""; 00148 _contact_list.clear(); 00149 _domain_list.clear(); 00150 } 00151 00152 protected: 00154 string _organization; 00155 00157 string _responsible; 00158 00160 map<string, string, less<string> > _contact_list; 00161 00163 string _proxy; 00164 00166 set<string> _domain_list; 00167 }; 00168 00169 LIBEPP_NICBR_NS_END 00170 #endif //__BR_ORG_INFO_RSP_H__