libepp_nicbr
BrOrgInfo.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: BrOrgInfo.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __BR_ORG_INFO_H__
8 #define __BR_ORG_INFO_H__
9 
10 #include <memory>
11 
12 #include "libepp_nicbr.H"
13 
14 #include "ContactInfo.H"
15 #include "BrOrgInfoCmd.H"
16 #include "BrOrgInfoRsp.H"
17 
18 using std::auto_ptr;
19 
20 LIBEPP_NICBR_NS_BEGIN
21 
23 class BrOrgInfo : public ContactInfo
24 {
25 public:
27  BrOrgInfo(const ActionType type = BR_ORG_INFO) : ContactInfo(type)
28  {
29  if (type == BR_ORG_INFO) {
30  _command = auto_ptr<BrOrgInfoCmd>(new BrOrgInfoCmd());
31  _response = auto_ptr<BrOrgInfoRsp>(new BrOrgInfoRsp());
32  }
33  }
34 
36 
39  void set_xml_template(const string &xml_template);
40 
42 
46  {
47  return (BrOrgInfoCmd*) _command.get();
48  }
49 
51 
55  {
56  return (BrOrgInfoRsp*) _response.get();
57  }
58 
59 };
60 
61 LIBEPP_NICBR_NS_END
62 #endif //__BR_ORG_INFO_H__
EPP BrOrgInfoCmd Class.
BrOrgInfo(const ActionType type=BR_ORG_INFO)
Constructor.
Definition: BrOrgInfo.H:27
Project defines.
EPP ContactInfo Class.
Definition: ContactInfo.H:23
BrOrgInfoRsp * get_response()
Returns raw pointer to the response.
Definition: BrOrgInfo.H:54
EPP BrOrgInfoCmd Class.
Definition: BrOrgInfoCmd.H:21
EPP BrOrgInfo Class.
Definition: BrOrgInfo.H:23
auto_ptr< Response > _response
Generic response.
Definition: Action.H:79
void set_xml_template(const string &xml_template)
Sets XML template.
EPP BrOrgInfoRsp Class.
EPP BrOrgInfoRsp Class.
Definition: BrOrgInfoRsp.H:28
auto_ptr< Command > _command
Generic command.
Definition: Action.H:76
ActionType
Action Types.
Definition: CommonData.H:23
BrOrgInfoCmd * get_command()
Returns raw pointer to the command.
Definition: BrOrgInfo.H:45
EPP ContactInfo Class.