include/BrOrgInfoRsp.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: BrOrgInfoRsp.H 997 2009-01-22 12:35:13Z rafael $ */
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 
00144 
00147   void set_exDate(const string &exDate)
00148   {
00149     _exDate = exDate;
00150   }
00151 
00154 
00157   string get_exDate() const
00158   {
00159     return _exDate;
00160   }
00161 
00164   void insert_asn(const int &asn)
00165   {
00166     _asn_list.insert(asn);
00167   }
00168 
00171   set<int> get_asn_list() const
00172   {
00173     return _asn_list;
00174   }
00175 
00178   void insert_ipRange(const IpRange &ipRange)
00179   {
00180     _ipRange_list.insert(ipRange);
00181   }
00182   
00185   set<IpRange> get_ipRange_list() const
00186   {
00187     return _ipRange_list;
00188   }
00189 
00191   void reset() { 
00192     ContactInfoRsp::reset();
00193     _organization = "";
00194     _responsible = "";
00195     _proxy = "";
00196     _contact_list.clear();
00197     _domain_list.clear();
00198     _exDate = "";
00199     _asn_list.clear();
00200     _ipRange_list.clear();
00201   }
00202 
00203 protected:
00205   string _organization;
00206 
00208   string _responsible;
00209   
00211   map<string, string, less<string> > _contact_list;
00212 
00214   string _proxy;
00215 
00217   set<string> _domain_list;
00218 
00220   string _exDate;
00221 
00223   set<int> _asn_list;
00224 
00225   // IP Ranges
00226   set<IpRange> _ipRange_list;
00227 };
00228 
00229 LIBEPP_NICBR_NS_END
00230 #endif //__BR_ORG_INFO_RSP_H__

Generated on Tue Mar 17 16:03:07 2009 for libepp_nicbr by  doxygen 1.4.7