libepp_nicbr
BrOrgCheck.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: BrOrgCheck.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __BR_ORG_CHECK_H__
8 #define __BR_ORG_CHECK_H__
9 
10 #include "ContactCheck.H"
11 #include "BrOrgCheckCmd.H"
12 #include "BrOrgCheckRsp.H"
13 
14 LIBEPP_NICBR_NS_BEGIN
15 
17 class BrOrgCheck : public ContactCheck
18 {
19 public:
21  BrOrgCheck(const ActionType type = BR_ORG_CHECK) : ContactCheck(type)
22  {
23  if (type == BR_ORG_CHECK) {
24  _command = auto_ptr<BrOrgCheckCmd>(new BrOrgCheckCmd());
25  _response = auto_ptr<BrOrgCheckRsp>(new BrOrgCheckRsp());
26  }
27  }
28 
30 
33  void set_xml_template(const string &xml_template);
34 
36 
40  {
41  return (BrOrgCheckRsp*) _response.get();
42  }
43 
45 
49  {
50  return (BrOrgCheckCmd*) _command.get();
51  }
52 
53 };
54 
55 LIBEPP_NICBR_NS_END
56 #endif //__BR_ORG_CHECK_H__
EPP BrOrgCheckCmd Class.
EPP ContactCheck Class.
Definition: ContactCheck.H:23
void set_xml_template(const string &xml_template)
Sets XML template.
EPP BrOrgCheck Class.
Definition: BrOrgCheck.H:17
EPP BrOrgCheckRsp extension Class.
Definition: BrOrgCheckRsp.H:15
EPP ContactCheck 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 BrOrgCheckRsp extension Class.
BrOrgCheckCmd * get_command()
Returns raw pointer to the command.
Definition: BrOrgCheck.H:48
EPP BrOrgCheckCmd Class.
Definition: BrOrgCheckCmd.H:24
BrOrgCheck(const ActionType type=BR_ORG_CHECK)
Constructor.
Definition: BrOrgCheck.H:21
BrOrgCheckRsp * get_response()
Returns raw pointer to the response.
Definition: BrOrgCheck.H:39