libepp_nicbr
AsnReserveDeleteCmd.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: AsnReserveDeleteCmd.H 1264 2014-12-02 20:48:10Z mendelson $ */
7 #ifndef __ASNRESERVEDELETECMD_H__
8 #define __ASNRESERVEDELETECMD_H__
9 
10 #include "libepp_nicbr.H"
11 
12 #include "Command.H"
13 
14 LIBEPP_NICBR_NS_BEGIN
15 
18 {
19 public:
21  AsnReserveDeleteCmd(bool reset = true) : Command(false)
22  {
23  if (reset) {
24  this->reset();
25  }
26  }
27 
29 
32  void set_id(const int id)
33  {
34  _id = id;
35  }
36 
38 
41  int get_id() const
42  {
43  return _id;
44  }
45 
46  void reset()
47  {
49  _id = 0;
50  }
51 
52 protected:
54  int _id;
55 };
56 
57 LIBEPP_NICBR_NS_END
58 #endif // __ASNRESERVEDELETECMD_H__
int get_id() const
Returns object id.
Definition: AsnReserveDeleteCmd.H:41
Project defines.
void set_id(const int id)
Sets id.
Definition: AsnReserveDeleteCmd.H:32
EPP AsnReserveDelete Class.
Definition: AsnReserveDeleteCmd.H:17
int _id
object id
Definition: AsnReserveDeleteCmd.H:54
AsnReserveDeleteCmd(bool reset=true)
Default constructor.
Definition: AsnReserveDeleteCmd.H:21
void reset()
Reset object attributes.
Definition: Command.H:33
EPP Command Class.
Definition: Command.H:18
EPP Command Class.