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