libepp_nicbr
IpNetworkCheckCmd.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: IpNetworkCheckCmd.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __IPNETWORKCHECKCMD_H__
8 #define __IPNETWORKCHECKCMD_H__
9 
10 #include <vector>
11 
12 #include "libepp_nicbr.H"
13 
14 #include "Command.H"
15 
16 using std::vector;
17 
18 LIBEPP_NICBR_NS_BEGIN
19 
21 class IpNetworkCheckCmd : public Command
22 {
23 public:
25  IpNetworkCheckCmd(bool reset = true) : Command(false)
26  {
27  if (reset) {
28  this->reset();
29  }
30  }
31 
33 
36  void insert_ipRange(const IpRange &ipRange)
37  {
38  _ipRanges.push_back(ipRange);
39  }
40 
42 
45  vector<IpRange> get_ipRanges() const
46  {
47  return _ipRanges;
48  }
49 
50  void reset()
51  {
53  _ipRanges.clear();
54  }
55 
56 protected:
58  vector<IpRange> _ipRanges;
59 };
60 
61 LIBEPP_NICBR_NS_END
62 #endif // __IPNETWORKCHECKCMD_H__
vector< IpRange > _ipRanges
list of ip range
Definition: IpNetworkCheckCmd.H:58
EPP IpNetworkCheckCmd Class.
Definition: IpNetworkCheckCmd.H:21
Project defines.
IpNetworkCheckCmd(bool reset=true)
Default constructor.
Definition: IpNetworkCheckCmd.H:25
Describes IpRange structure.
Definition: CommonData.H:192
void insert_ipRange(const IpRange &ipRange)
Add an ip range.
Definition: IpNetworkCheckCmd.H:36
vector< IpRange > get_ipRanges() const
Returns list of ip range.
Definition: IpNetworkCheckCmd.H:45
void reset()
Reset object attributes.
Definition: Command.H:33
EPP Command Class.
Definition: Command.H:18
EPP Command Class.