libepp_nicbr
AsnTransferCmd.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: AsnTransferCmd.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __ASNTRANSFERCMD_H__
8 #define __ASNTRANSFERCMD_H__
9 
10 #include "libepp_nicbr.H"
11 
12 #include "Command.H"
13 
14 LIBEPP_NICBR_NS_BEGIN
15 
17 class AsnTransferCmd : public Command
18 {
19 public:
21  AsnTransferCmd(bool reset = true) : Command(false)
22  {
23  if (reset) {
24  this->reset();
25  }
26  }
27 
29 
32  void set_operation(const string &op)
33  {
34  _operation = op;
35  }
36 
38 
41  string get_operation() const
42  {
43  return _operation;
44  }
45 
47 
50  void set_asn(const int asn)
51  {
52  _asn = asn;
53  }
54 
56 
59  int get_asn() const
60  {
61  return _asn;
62  }
63 
64  void reset()
65  {
67  _operation = "";
68  _asn = 0;
69  }
70 
71 protected:
73  string _operation;
74 
76  int _asn;
77 };
78 
79 LIBEPP_NICBR_NS_END
80 #endif // __ASNTRANSFERCMD_H__
EPP AsnTransferCmd Class.
Definition: AsnTransferCmd.H:17
Project defines.
void set_asn(const int asn)
Sets asn.
Definition: AsnTransferCmd.H:50
int _asn
autonomous system number
Definition: AsnTransferCmd.H:76
void set_operation(const string &op)
Sets operation.
Definition: AsnTransferCmd.H:32
int get_asn() const
Returns asn.
Definition: AsnTransferCmd.H:59
string get_operation() const
Returns operation.
Definition: AsnTransferCmd.H:41
void reset()
Reset object attributes.
Definition: Command.H:33
EPP Command Class.
Definition: Command.H:18
EPP Command Class.
AsnTransferCmd(bool reset=true)
Default constructor.
Definition: AsnTransferCmd.H:21
string _operation
identifies the transfer operation to be performed
Definition: AsnTransferCmd.H:73