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