00001 /* ${copyright}$ */ 00002 /* $Id: BrOrgInfoRsp.H 548 2006-03-07 22:50:07Z cesar $ */ 00007 #ifndef __BR_ORG_INFO_RSP_H__ 00008 #define __BR_ORG_INFO_RSP_H__ 00009 00010 #include <string> 00011 #include <map> 00012 #include <memory> 00013 00014 #include "libepp_nicbr.H" 00015 00016 #include "ContactInfoRsp.H" 00017 00018 using std::string; 00019 using std::map; 00020 using std::auto_ptr; 00021 00022 LIBEPP_NICBR_NS_BEGIN 00023 00025 class BrOrgInfoRsp : public ContactInfoRsp 00026 { 00027 public: 00029 BrOrgInfoRsp(bool reset = true) : ContactInfoRsp(false) 00030 { 00031 if (reset) { 00032 this->reset(); 00033 } 00034 } 00035 00037 BrOrgInfoRsp(ContactInfoRsp *parent, bool reset = true) : 00038 ContactInfoRsp(false) 00039 { 00040 if (reset) { 00041 this->reset(); 00042 } 00043 _roid = parent->get_roid(); 00044 _status_set = parent->get_status_set(); 00045 _clID = parent->get_clID(); 00046 _crID = parent->get_crID(); 00047 _crDate = parent->get_crDate(); 00048 _upID = parent->get_upID(); 00049 _upDate = parent->get_upDate(); 00050 _trDate = parent->get_trDate(); 00051 _common = parent->get_common_data(); 00052 _authInfo = parent->get_authInfo(); 00053 00054 } 00055 00057 00060 void set_organization(const string &organization) 00061 { 00062 _organization = organization; 00063 } 00064 00066 00069 string get_organization() 00070 { 00071 return _organization; 00072 } 00073 00075 00079 void insert_contact(const string &type, const string &id) 00080 { 00081 _contact_list[type] = id; 00082 } 00083 00085 00088 map< string, string, less<string> > get_contact_list() 00089 { 00090 return _contact_list; 00091 } 00092 00094 00097 void set_attorney(const string &attorney) 00098 { 00099 _attorney = attorney; 00100 } 00101 00103 00106 string get_attorney() 00107 { 00108 return _attorney; 00109 } 00110 00112 void reset() { 00113 ContactInfoRsp::reset(); 00114 _organization = ""; 00115 _attorney = ""; 00116 _contact_list.clear(); 00117 } 00118 00119 protected: 00121 string _organization; 00122 00124 map<string, string, less<string> > _contact_list; 00125 00127 string _attorney; 00128 00129 }; 00130 00131 LIBEPP_NICBR_NS_END 00132 #endif //__BR_ORG_INFO_RSP_H__