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