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