libepp_nicbr
AsnReserveCreateRsp.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: AsnReserveCreateRsp.H 1264 2014-12-02 20:48:10Z mendelson $ */
7 #ifndef __ASNRESERVECREATERSP_H__
8 #define __ASNRESERVECREATERSP_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 
22 {
23 public:
25  AsnReserveCreateRsp(bool reset = true) : Response(false)
26  {
27  if (reset) {
28  this->reset();
29  }
30  }
31 
33 
36  void set_id(const int id)
37  {
38  _id = id;
39  }
40 
42 
45  int get_id() const
46  {
47  return _id;
48  }
49 
51 
54  void set_crDate(const string& crDate) { _crDate = crDate; }
55 
57 
60  string get_crDate() const { return _crDate; }
61 
62  void reset()
63  {
65  _id = 0;
66  _crDate = "";
67  }
68 
69 protected:
71  int _id;
72 
74  string _crDate;
75 };
76 
77 LIBEPP_NICBR_NS_END
78 #endif // __ASNRESERVECREATERSP_H__
EPP Response Class.
Definition: Response.H:24
void set_crDate(const string &crDate)
Sets creation date.
Definition: AsnReserveCreateRsp.H:54
Project defines.
EPP Response Class.
EPP AnsCreateRsp Class.
Definition: AsnReserveCreateRsp.H:21
void set_id(const int id)
Sets asn.
Definition: AsnReserveCreateRsp.H:36
string _crDate
date and time of object creation
Definition: AsnReserveCreateRsp.H:74
string get_crDate() const
Returns creation date.
Definition: AsnReserveCreateRsp.H:60
AsnReserveCreateRsp(bool reset=true)
Default constructor.
Definition: AsnReserveCreateRsp.H:25
int _id
object id of the reservation
Definition: AsnReserveCreateRsp.H:71
int get_id() const
Returns object id.
Definition: AsnReserveCreateRsp.H:45
void reset()
reset attributes
Definition: Response.H:161