include/BrOrgInfoRsp.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: BrOrgInfoRsp.H 698 2006-04-28 15:07:38Z cacm $ */
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   
00072 
00076   void insert_contact(const string &type, const string &id)
00077   {
00078     _contact_list[type] = id;
00079   }
00080 
00082 
00085   map< string, string, less<string> > get_contact_list() 
00086   {
00087     return _contact_list;
00088   }
00089 
00091 
00094   void set_proxy(const string &proxy) 
00095   {
00096     _proxy = proxy;
00097   }
00098   
00100 
00103   string get_proxy() 
00104   {
00105     return _proxy;
00106   }
00107 
00109 
00112   void insert_domainName(const string &fqdn)
00113   {
00114     _domain_list.insert(fqdn);
00115   }
00116 
00118 
00121   set<string> get_domainName_list()
00122   {
00123     return _domain_list;
00124   }
00125 
00127   void reset() { 
00128     ContactInfoRsp::reset();
00129     _organization = "";
00130     _proxy = "";
00131     _contact_list.clear();
00132     _domain_list.clear();
00133   }
00134 
00135 protected:
00137   string _organization;
00138   
00140   map<string, string, less<string> > _contact_list;
00141 
00143   string _proxy;
00144 
00146   set<string> _domain_list;
00147 };
00148 
00149 LIBEPP_NICBR_NS_END
00150 #endif //__BR_ORG_INFO_RSP_H__

Generated on Thu Jun 8 17:40:00 2006 for libepp_nicbr by  doxygen 1.4.6