00001 /* ${copyright}$ */ 00002 /* $Id: AsnInfoRsp.H 1040 2009-10-01 17:49:12Z fneves $ */ 00007 #ifndef __ASNINFORSP_H__ 00008 #define __ASNINFORSP_H__ 00009 00010 #include "libepp_nicbr.H" 00011 00012 #include "Response.H" 00013 00014 LIBEPP_NICBR_NS_BEGIN 00015 00017 class AsnInfoRsp : public Response 00018 { 00019 public: 00021 AsnInfoRsp(bool reset = true) : Response(false) 00022 { 00023 if (reset) { 00024 this->reset(); 00025 } 00026 } 00027 00029 00032 void set_asn(const int asn) 00033 { 00034 _asn = asn; 00035 } 00036 00038 00041 int get_asn() const 00042 { 00043 return _asn; 00044 } 00045 00047 00051 void set_roid(const string &roid) 00052 { 00053 _roid = roid; 00054 } 00055 00057 00061 string get_roid() const 00062 { 00063 return _roid; 00064 } 00065 00067 00071 void set_organization(const string &organization) 00072 { 00073 _organization = organization; 00074 } 00075 00077 00081 string get_organization() const 00082 { 00083 return _organization; 00084 } 00085 00087 00091 void insert_contact(const string &type, const string &identification) 00092 { 00093 _contacts[type] = identification; 00094 } 00095 00097 00100 map< string, string, less<string> > get_contacts() { return _contacts; } 00101 00103 00106 void set_clId(const string &clId) 00107 { 00108 _clId = clId; 00109 } 00110 00112 00115 string get_clId() const 00116 { 00117 return _clId; 00118 } 00119 00121 00124 void set_crId(const string &crId) 00125 { 00126 _crId = crId; 00127 } 00128 00130 00133 string get_crId() const 00134 { 00135 return _crId; 00136 } 00137 00139 00142 void set_crDate(const string& crDate) 00143 { 00144 _crDate = crDate; 00145 } 00146 00148 00151 string get_crDate() const 00152 { 00153 return _crDate; 00154 } 00155 00157 00161 void set_exDate(const string &exDate) 00162 { 00163 _exDate = exDate; 00164 } 00165 00167 00171 string get_exDate() const 00172 { 00173 return _exDate; 00174 } 00175 00177 00180 void set_upId(const string &upId) 00181 { 00182 _upId = upId; 00183 } 00184 00186 00189 string get_upId() const 00190 { 00191 return _upId; 00192 } 00193 00195 00198 void set_upDate(const string &upDate) 00199 { 00200 _upDate = upDate; 00201 } 00202 00204 00207 string get_upDate() const 00208 { 00209 return _upDate; 00210 } 00211 00213 00216 void set_trDate(const string &trDate) 00217 { 00218 _trDate = trDate; 00219 } 00220 00222 00225 string get_trDate() const 00226 { 00227 return _trDate; 00228 } 00229 00230 void reset() 00231 { 00232 Response::reset(); 00233 _asn = 0; 00234 _roid = ""; 00235 _organization = ""; 00236 _contacts.clear(); 00237 _clId = ""; 00238 _crId = ""; 00239 _crDate = ""; 00240 _exDate = ""; 00241 _upId = ""; 00242 _upDate = ""; 00243 _trDate = ""; 00244 } 00245 00246 protected: 00248 int _asn; 00249 00252 string _roid; 00253 00256 string _organization; 00257 00259 map< string, string, less<string> > _contacts; 00260 00262 string _clId; 00263 00265 string _crId; 00266 00268 string _crDate; 00269 00271 string _exDate; 00272 00274 string _upId; 00275 00277 string _upDate; 00278 00280 string _trDate; 00281 }; 00282 00283 LIBEPP_NICBR_NS_END 00284 #endif // __ASNINFORSP_H__