libepp_nicbr
Command.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: Command.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __COMMAND_H__
8 #define __COMMAND_H__
9 
10 #include <string>
11 #include "libepp_nicbr.H"
12 
13 using std::string;
14 
15 LIBEPP_NICBR_NS_BEGIN
16 
18 class Command
19 {
20 public:
22  Command(bool reset = true)
23  {
24  if (reset) {
25  this->reset();
26  }
27  }
28 
30 
33  void reset()
34  {
35  _clTRID = "";
36  }
37 
39  virtual ~Command() {}
40 
42 
45  void set_clTRID(const string &clTRID)
46  {
47  _clTRID = clTRID;
48  }
49 
51 
54  string get_clTRID() const
55  {
56  return _clTRID;
57  }
58 
59 protected:
61  string _clTRID;
62 
63 };
64 
65 LIBEPP_NICBR_NS_END
66 #endif //__COMMAND_H__
virtual ~Command()
virtual destructor
Definition: Command.H:39
void set_clTRID(const string &clTRID)
Sets clTRID.
Definition: Command.H:45
Project defines.
Command(bool reset=true)
Default constructor.
Definition: Command.H:22
string get_clTRID() const
Returns clTRID.
Definition: Command.H:54
void reset()
Reset object attributes.
Definition: Command.H:33
EPP Command Class.
Definition: Command.H:18
string _clTRID
Client Transaction ID.
Definition: Command.H:61