libepp_nicbr
IpNetworkInfoCmd.H
1 #ifndef __IPNETWORKINFOCMD_H__
2 #define __IPNETWORKINFOCMD_H__
3 
4 #include "libepp_nicbr.H"
5 
6 #include "Command.H"
7 
8 LIBEPP_NICBR_NS_BEGIN
9 
11 class IpNetworkInfoCmd : public Command
12 {
13 public:
15  IpNetworkInfoCmd(bool reset = true) : Command(false)
16  {
17  if (reset) {
18  this->reset();
19  }
20  }
21 
23 
26  void set_ipRange(const IpRange &ipRange)
27  {
28  _ipRange = ipRange;
29  }
30 
32 
36  {
37  return _ipRange;
38  }
39 
41 
44  void set_roid(const string &roid)
45  {
46  _roid = roid;
47  }
48 
50 
53  string get_roid() const
54  {
55  return _roid;
56  }
57 
58  void reset()
59  {
61  _ipRange.reset();
62  _roid = "";
63  }
64 
65 protected:
68 
70  string _roid;
71 };
72 
73 LIBEPP_NICBR_NS_END
74 #endif // __IPNETWORKINFOCMD_H__
EPP IpNetworkInfo Class.
Definition: IpNetworkInfoCmd.H:11
string _roid
server-unique id for the created IP network
Definition: IpNetworkInfoCmd.H:70
IpNetworkInfoCmd(bool reset=true)
Default constructor.
Definition: IpNetworkInfoCmd.H:15
Project defines.
void set_ipRange(const IpRange &ipRange)
Sets ip range.
Definition: IpNetworkInfoCmd.H:26
Describes IpRange structure.
Definition: CommonData.H:192
void set_roid(const string &roid)
Sets repository object ID.
Definition: IpNetworkInfoCmd.H:44
IpRange _ipRange
ip range
Definition: IpNetworkInfoCmd.H:67
void reset()
Reset object attributes.
Definition: Command.H:33
EPP Command Class.
Definition: Command.H:18
EPP Command Class.
string get_roid() const
Returns repository object ID.
Definition: IpNetworkInfoCmd.H:53
IpRange get_ipRange() const
Returns ip range.
Definition: IpNetworkInfoCmd.H:35