libepp_nicbr
DefRegRenewRsp.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id$ */
7 #ifndef __DEF_REG_RENEW_RSP_H__
8 #define __DEF_REG_RENEW_RSP_H__
9 
10 #include <list>
11 #include <string>
12 
13 #include "libepp_nicbr.H"
14 
15 #include "Response.H"
16 
17 using std::list;
18 using std::string;
19 
20 LIBEPP_NICBR_NS_BEGIN
21 
23 class DefRegRenewRsp : public Response
24 {
25 public:
27  DefRegRenewRsp(bool reset = true) : Response(false)
28  {
29  if (reset) {
30  this->reset();
31  }
32  }
33 
35 
38  void set_roid(const string& roid) { _roid = roid; }
39 
41 
44  string get_roid() const { return _roid; }
45 
47 
50  void set_exDate(const string& exDate) { _exDate = exDate; }
51 
53 
56  string get_exDate() const { return _exDate; }
57 
59  void reset()
60  {
62  _roid = "";
63  _exDate = "";
64  }
65 
66 protected:
69  string _roid;
70 
72  string _exDate;
73 };
74 
75 LIBEPP_NICBR_NS_END
76 
77 #endif // __DEF_REG_RENEW_RSP_H__
EPP Response Class.
Definition: Response.H:24
Project defines.
void set_exDate(const string &exDate)
Sets expiration date.
Definition: DefRegRenewRsp.H:50
EPP DefRegRenewRsp Class.
Definition: DefRegRenewRsp.H:23
void set_roid(const string &roid)
Sets repository object identification.
Definition: DefRegRenewRsp.H:38
EPP Response Class.
DefRegRenewRsp(bool reset=true)
Default constructor.
Definition: DefRegRenewRsp.H:27
string get_exDate() const
Returns expiration date.
Definition: DefRegRenewRsp.H:56
string _exDate
expiration date
Definition: DefRegRenewRsp.H:72
void reset()
Resets object attributes.
Definition: DefRegRenewRsp.H:59
string get_roid() const
Returns repository object identification.
Definition: DefRegRenewRsp.H:44
string _roid
Definition: DefRegRenewRsp.H:69
void reset()
reset attributes
Definition: Response.H:161