libepp_nicbr
DomainCreateRsp.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: DomainCreateRsp.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __DOMAIN_CREATE_RSP_H__
8 #define __DOMAIN_CREATE_RSP_H__
9 
10 #include <string>
11 
12 #include "libepp_nicbr.H"
13 
14 #include "Response.H"
15 
16 using std::string;
17 
18 LIBEPP_NICBR_NS_BEGIN
19 
21 class DomainCreateRsp : public Response
22 {
23 public:
25  DomainCreateRsp(bool reset = true) : Response(false)
26  {
27  if (reset) {
28  this->reset();
29  }
30  }
31 
33 
36  void set_name(const string& name) { _name = name; }
37 
39 
42  string get_name() const { return _name; }
43 
45 
48  void set_crDate(const string& crDate) { _crDate = crDate; }
49 
51 
54  string get_crDate() const { return _crDate; }
55 
57 
60  void set_exDate(const string& exDate) { _exDate = exDate; }
61 
63 
66  string get_exDate() const { return _exDate; }
67 
68  void reset() {
70  _name = "";
71  _crDate = "";
72  _exDate = "";
73  }
74 
75 protected:
76 
78  string _name;
79 
81  string _crDate;
82 
85  string _exDate;
86 
87 };
88 
89 LIBEPP_NICBR_NS_END
90 #endif //__DOMAIN_CREATE_RSP_H__
EPP Response Class.
Definition: Response.H:24
EPP DomainCreateRsp Class.
Definition: DomainCreateRsp.H:21
void set_exDate(const string &exDate)
Sets expiration date.
Definition: DomainCreateRsp.H:60
Project defines.
string _name
fully qualified domain name
Definition: DomainCreateRsp.H:78
string _exDate
Definition: DomainCreateRsp.H:85
EPP Response Class.
string get_exDate() const
Returns expiration date.
Definition: DomainCreateRsp.H:66
void set_name(const string &name)
Sets domain name.
Definition: DomainCreateRsp.H:36
string _crDate
date and time of object creation
Definition: DomainCreateRsp.H:81
string get_crDate() const
Returns creation date.
Definition: DomainCreateRsp.H:54
DomainCreateRsp(bool reset=true)
Default constructor.
Definition: DomainCreateRsp.H:25
string get_name() const
Returns domain name.
Definition: DomainCreateRsp.H:42
void set_crDate(const string &crDate)
Sets creation date.
Definition: DomainCreateRsp.H:48
void reset()
reset attributes
Definition: Response.H:161