libepp_nicbr
AsnCreateRsp.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: AsnCreateRsp.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __ASNCREATERSP_H__
8 #define __ASNCREATERSP_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 AsnCreateRsp : public Response
22 {
23 public:
25  AsnCreateRsp(bool reset = true) : Response(false)
26  {
27  if (reset) {
28  this->reset();
29  }
30  }
31 
33 
36  void set_asn(const int asn)
37  {
38  _asn = asn;
39  }
40 
42 
45  int get_asn() const
46  {
47  return _asn;
48  }
49 
51 
54  void set_roid(const string &roid)
55  {
56  _roid = roid;
57  }
58 
60 
63  string get_roid() const
64  {
65  return _roid;
66  }
67 
69 
72  void set_crDate(const string& crDate) { _crDate = crDate; }
73 
75 
78  string get_crDate() const { return _crDate; }
79 
81 
85  void set_exDate(const string& exDate) { _exDate = exDate; }
86 
88 
92  string get_exDate() const { return _exDate; }
93 
94  void reset()
95  {
97  _asn = 0;
98  _roid = "";
99  _crDate = "";
100  _exDate = "";
101  }
102 
103 protected:
105  int _asn;
106 
108  string _roid;
109 
111  string _crDate;
112 
114  string _exDate;
115 };
116 
117 LIBEPP_NICBR_NS_END
118 #endif // __ASNCREATERSP_H__
EPP Response Class.
Definition: Response.H:24
AsnCreateRsp(bool reset=true)
Default constructor.
Definition: AsnCreateRsp.H:25
Project defines.
int get_asn() const
Returns asn.
Definition: AsnCreateRsp.H:45
string get_crDate() const
Returns creation date.
Definition: AsnCreateRsp.H:78
string _exDate
date and time identifying the end of the AS object's registration period
Definition: AsnCreateRsp.H:114
EPP Response Class.
void set_asn(const int asn)
Sets asn.
Definition: AsnCreateRsp.H:36
EPP AnsCreateRsp Class.
Definition: AsnCreateRsp.H:21
int _asn
autonomous system number
Definition: AsnCreateRsp.H:105
string get_roid() const
Returns repository object ID.
Definition: AsnCreateRsp.H:63
string _roid
server-unique id for the created IP network
Definition: AsnCreateRsp.H:108
void set_roid(const string &roid)
Sets repository object ID.
Definition: AsnCreateRsp.H:54
void set_exDate(const string &exDate)
Sets expiration date.
Definition: AsnCreateRsp.H:85
void set_crDate(const string &crDate)
Sets creation date.
Definition: AsnCreateRsp.H:72
void reset()
reset attributes
Definition: Response.H:161
string _crDate
date and time of object creation
Definition: AsnCreateRsp.H:111
string get_exDate() const
Returns expiration date.
Definition: AsnCreateRsp.H:92