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