libepp_nicbr
BrDomainUpdate.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: BrDomainUpdate.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __BR_DOMAIN_UPDATE_H__
8 #define __BR_DOMAIN_UPDATE_H__
9 
10 #include "DomainUpdate.H"
11 #include "BrDomainUpdateCmd.H"
12 #include "BrDomainUpdateRsp.H"
13 
14 LIBEPP_NICBR_NS_BEGIN
15 
18 {
19 public:
20 
22  BrDomainUpdate(const ActionType type = BR_DOMAIN_UPDATE)
23  : DomainUpdate(type)
24  {
25  if (type == BR_DOMAIN_UPDATE) {
26  _command = auto_ptr<BrDomainUpdateCmd>(new BrDomainUpdateCmd());
27  _response = auto_ptr<BrDomainUpdateRsp>(new BrDomainUpdateRsp());
28  }
29  }
30 
32 
35  void set_xml_template(const string &xml_template);
36 
38 
42  {
43  return (BrDomainUpdateCmd *) _command.get();
44  }
45 
47 
51  {
52  return (BrDomainUpdateRsp *) _response.get();
53  }
54 };
55 
56 LIBEPP_NICBR_NS_END
57 #endif //__BR_DOMAIN_UPDATE_H__
BrDomainUpdateRsp * get_response()
Returns raw pointer to the response.
Definition: BrDomainUpdate.H:50
BrDomainUpdateCmd * get_command()
Returns raw pointer to the command.
Definition: BrDomainUpdate.H:41
EPP BrDomainUpdateRsp extension Class.
void set_xml_template(const string &xml_template)
Sets XML template.
EPP DomainUpdate Class.
auto_ptr< Response > _response
Generic response.
Definition: Action.H:79
auto_ptr< Command > _command
Generic command.
Definition: Action.H:76
ActionType
Action Types.
Definition: CommonData.H:23
EPP BrDomainUpdateCmd extension Class.
Definition: BrDomainUpdateCmd.H:16
EPP BrDomainUpdateRsp extension Class.
Definition: BrDomainUpdateRsp.H:20
EPP BrDomainUpdateCmd extension Class.
EPP BrDomainUpdate extension Class.
Definition: BrDomainUpdate.H:17
BrDomainUpdate(const ActionType type=BR_DOMAIN_UPDATE)
Constructor.
Definition: BrDomainUpdate.H:22
EPP DomainUpdate Class.
Definition: DomainUpdate.H:23