libepp_nicbr
BrOrgUpdate.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: BrOrgUpdate.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __BR_ORG_UPDATE_H__
8 #define __BR_ORG_UPDATE_H__
9 
10 #include <memory>
11 
12 #include "libepp_nicbr.H"
13 
14 #include "ContactUpdate.H"
15 #include "BrOrgUpdateCmd.H"
16 #include "Response.H"
17 
18 using std::auto_ptr;
19 
20 LIBEPP_NICBR_NS_BEGIN
21 
23 class BrOrgUpdate : public ContactUpdate
24 {
25 public:
27  BrOrgUpdate(const ActionType type = BR_ORG_UPDATE) : ContactUpdate(type)
28  {
29  if (type == BR_ORG_UPDATE) {
30  _command = auto_ptr<BrOrgUpdateCmd>(new BrOrgUpdateCmd());
31  _response = auto_ptr<Response>(new Response());
32  }
33  }
34 
36 
39  void set_xml_template(const string &xml_template);
40 
42 
46  {
47  return (BrOrgUpdateCmd*) _command.get();
48  }
49 
50 };
51 
52 LIBEPP_NICBR_NS_END
53 #endif //__BR_ORG_UPDATE_H__
BrOrgUpdate(const ActionType type=BR_ORG_UPDATE)
Constructor.
Definition: BrOrgUpdate.H:27
EPP Response Class.
Definition: Response.H:24
void set_xml_template(const string &xml_template)
Sets XML template.
BrOrgUpdateCmd * get_command()
Returns raw pointer to the command.
Definition: BrOrgUpdate.H:45
Project defines.
EPP BrOrgUpdate Class.
Definition: BrOrgUpdate.H:23
EPP BrOrgUpdateCmd Class.
EPP ContactUpdate Class.
EPP Response Class.
EPP BrOrgUpdateCmd Class.
Definition: BrOrgUpdateCmd.H:25
auto_ptr< Response > _response
Generic response.
Definition: Action.H:79
EPP ContactUpdate Class.
Definition: ContactUpdate.H:23
auto_ptr< Command > _command
Generic command.
Definition: Action.H:76
ActionType
Action Types.
Definition: CommonData.H:23