00001 /* ${copyright}$ */ 00002 /* $Id: AsnCreateRsp.H 945 2008-12-09 16:44:26Z rafael $ */ 00007 #ifndef __ASNCREATERSP_H__ 00008 #define __ASNCREATERSP_H__ 00009 00010 #include <string> 00011 00012 #include "libepp_nicbr.H" 00013 00014 #include "Response.H" 00015 00016 using std::string; 00017 00018 LIBEPP_NICBR_NS_BEGIN 00019 00021 class AsnCreateRsp : public Response 00022 { 00023 public: 00025 AsnCreateRsp(bool reset = true) : Response(false) 00026 { 00027 if (reset) { 00028 this->reset(); 00029 } 00030 } 00031 00033 00036 void set_asn(const int asn) 00037 { 00038 _asn = asn; 00039 } 00040 00042 00045 int get_asn() const 00046 { 00047 return _asn; 00048 } 00049 00051 00054 void set_roid(const string &roid) 00055 { 00056 _roid = roid; 00057 } 00058 00060 00063 string get_roid() const 00064 { 00065 return _roid; 00066 } 00067 00069 00072 void set_crDate(string crDate) { _crDate = crDate; } 00073 00075 00078 string get_crDate() { return _crDate; } 00079 00081 00085 void set_exDate(string exDate) { _exDate = exDate; } 00086 00088 00092 string get_exDate() { return _exDate; } 00093 00094 void reset() 00095 { 00096 Response::reset(); 00097 _asn = 0; 00098 _roid = ""; 00099 _crDate = ""; 00100 _exDate = ""; 00101 } 00102 00103 protected: 00105 int _asn; 00106 00108 string _roid; 00109 00111 string _crDate; 00112 00114 string _exDate; 00115 }; 00116 00117 LIBEPP_NICBR_NS_END 00118 #endif // __ASNCREATERSP_H__