libepp_nicbr
AsnRenewRsp.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: AsnRenewRsp.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __ASNRENEWRSP_H__
8 #define __ASNRENEWRSP_H__
9 
10 #include "libepp_nicbr.H"
11 
12 #include "Response.H"
13 
14 LIBEPP_NICBR_NS_BEGIN
15 
17 class AsnRenewRsp : public Response
18 {
19 public:
20  AsnRenewRsp(bool reset = true) : Response(false)
21  {
22  if (reset) {
23  this->reset();
24  }
25  }
26 
28 
31  void set_asn(const int asn)
32  {
33  _asn = asn;
34  }
35 
37 
40  int get_asn() const
41  {
42  return _asn;
43  }
44 
46 
50  void set_expDate(const string &expDate)
51  {
52  _expDate = expDate;
53  }
54 
56 
60  string get_expDate() const
61  {
62  return _expDate;
63  }
64 
65  void reset()
66  {
68  _asn = 0;
69  _expDate = "";
70  }
71 
72 protected:
74  int _asn;
75 
77  string _expDate;
78 };
79 
80 LIBEPP_NICBR_NS_END
81 #endif // __ASNRENEWRSP_H__
int _asn
autonomous system number
Definition: AsnRenewRsp.H:74
EPP Response Class.
Definition: Response.H:24
void set_expDate(const string &expDate)
Sets expiration date.
Definition: AsnRenewRsp.H:50
Project defines.
string get_expDate() const
Returns expiration date.
Definition: AsnRenewRsp.H:60
int get_asn() const
Returns asn.
Definition: AsnRenewRsp.H:40
EPP Response Class.
Response(bool reset=true)
Default constructor.
Definition: Response.H:78
EPP AnsRenewRsp Class.
Definition: AsnRenewRsp.H:17
string _expDate
date and time identifying the end of the AS object's registration period
Definition: AsnRenewRsp.H:77
void set_asn(const int asn)
Sets asn.
Definition: AsnRenewRsp.H:31
void reset()
reset attributes
Definition: Response.H:161