libepp_nicbr
AsnReserveCreateCmd.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: AsnReserveCreateCmd.H 1264 2014-12-02 20:48:10Z mendelson $ */
7 #ifndef __ASNRESERVECREATECMD_H__
8 #define __ASNRESERVECREATECMD_H__
9 
10 #include <map>
11 #include <string>
12 #include <vector>
13 
14 #include "libepp_nicbr.H"
15 
16 #include "Command.H"
17 
18 using std::map;
19 using std::string;
20 using std::vector;
21 
22 LIBEPP_NICBR_NS_BEGIN
23 
26 {
27 public:
29  AsnReserveCreateCmd(bool reset = true) : Command(false)
30  {
31  if (reset) {
32  this->reset();
33  }
34  }
35 
37 
40  void set_start_asn(const int asn)
41  {
42  _start_asn = asn;
43  }
44 
46 
49  int get_start_asn() const
50  {
51  return _start_asn;
52  }
53 
55 
58  void set_end_asn(const int asn)
59  {
60  _end_asn = asn;
61  }
62 
64 
67  int get_end_asn() const
68  {
69  return _end_asn;
70  }
71 
73 
76  void set_organization(const string &organization)
77  {
78  _organization = organization;
79  }
80 
82 
85  string get_organization() const
86  {
87  return _organization;
88  }
89 
91 
94  void set_comment(const string &comment)
95  {
96  _comment = comment;
97  }
98 
100 
103  string get_comment() const
104  {
105  return _comment;
106  }
107 
108  void reset()
109  {
110  Command::reset();
111  _start_asn = 0;
112  _end_asn = 0;
113  _organization = "";
114  _comment = "";
115  }
116 
117 protected:
120 
122  int _end_asn;
123 
126 
128  string _comment;
129 };
130 
131 LIBEPP_NICBR_NS_END
132 #endif // __ASNRESERVECREATECMD_H__
int get_start_asn() const
Returns start of the asn range.
Definition: AsnReserveCreateCmd.H:49
void set_comment(const string &comment)
Sets comment.
Definition: AsnReserveCreateCmd.H:94
EPP AsnReserveCreate Class.
Definition: AsnReserveCreateCmd.H:25
int _start_asn
start of the asn range
Definition: AsnReserveCreateCmd.H:119
AsnReserveCreateCmd(bool reset=true)
Default constructor.
Definition: AsnReserveCreateCmd.H:29
string get_organization() const
Returns organization associated with the reservation.
Definition: AsnReserveCreateCmd.H:85
void set_organization(const string &organization)
Sets organization.
Definition: AsnReserveCreateCmd.H:76
Project defines.
string _organization
organization associated with the reservation
Definition: AsnReserveCreateCmd.H:125
int _end_asn
end of the asn range
Definition: AsnReserveCreateCmd.H:122
int get_end_asn() const
Returns end of the asn range.
Definition: AsnReserveCreateCmd.H:67
string get_comment() const
Returns comment about reservation.
Definition: AsnReserveCreateCmd.H:103
void set_start_asn(const int asn)
Sets start of the asn range.
Definition: AsnReserveCreateCmd.H:40
void reset()
Reset object attributes.
Definition: Command.H:33
EPP Command Class.
Definition: Command.H:18
void set_end_asn(const int asn)
Sets start of the asn range.
Definition: AsnReserveCreateCmd.H:58
EPP Command Class.
string _comment
comment about the reservation
Definition: AsnReserveCreateCmd.H:128