libepp_nicbr
AsnCheckCmd.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: AsnCheckCmd.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __ASNCHECKCMD_H__
8 #define __ASNCHECKCMD_H__
9 
10 #include "libepp_nicbr.H"
11 
12 #include "Command.H"
13 
14 LIBEPP_NICBR_NS_BEGIN
15 
17 class AsnCheckCmd : public Command
18 {
19 public:
21  AsnCheckCmd(bool reset = true) : Command(false)
22  {
23  if (reset) {
24  this->reset();
25  }
26  }
27 
29 
32  void add_asn(const int asn)
33  {
34  _asn_list.push_back(asn);
35  }
36 
38 
41  list<int> get_asn_list() const
42  {
43  return _asn_list;
44  }
45 
46  void reset()
47  {
49  _asn_list.clear();
50  }
51 
52 protected:
54  list<int> _asn_list;
55 };
56 
57 LIBEPP_NICBR_NS_END
58 #endif // __ASNCHECKCMD_H__
Project defines.
EPP AsnCheck Class.
Definition: AsnCheckCmd.H:17
void add_asn(const int asn)
Sets asn.
Definition: AsnCheckCmd.H:32
AsnCheckCmd(bool reset=true)
Default constructor.
Definition: AsnCheckCmd.H:21
list< int > get_asn_list() const
Returns asn.
Definition: AsnCheckCmd.H:41
list< int > _asn_list
autonomous system number
Definition: AsnCheckCmd.H:54
void reset()
Reset object attributes.
Definition: Command.H:33
EPP Command Class.
Definition: Command.H:18
EPP Command Class.