libepp_nicbr
AsnDeleteCmd.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: AsnDeleteCmd.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __ASNDELETECMD_H__
8 #define __ASNDELETECMD_H__
9 
10 #include "libepp_nicbr.H"
11 
12 #include "Command.H"
13 
14 LIBEPP_NICBR_NS_BEGIN
15 
17 class AsnDeleteCmd : public Command
18 {
19 public:
21  AsnDeleteCmd(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 // __ASNDELETECMD_H__
int _asn
autonomous system number
Definition: AsnDeleteCmd.H:54
EPP AsnDelete Class.
Definition: AsnDeleteCmd.H:17
Project defines.
void set_asn(const int asn)
Sets asn.
Definition: AsnDeleteCmd.H:32
AsnDeleteCmd(bool reset=true)
Default constructor.
Definition: AsnDeleteCmd.H:21
void reset()
Reset object attributes.
Definition: Command.H:33
EPP Command Class.
Definition: Command.H:18
EPP Command Class.
int get_asn() const
Returns asn.
Definition: AsnDeleteCmd.H:41