libepp_nicbr
BrOrgDelete.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id$ */
7 #ifndef __BR_ORG_DELETE_H__
8 #define __BR_ORG_DELETE_H__
9 
10 #include <memory>
11 
12 #include "libepp_nicbr.H"
13 
14 #include "ContactDelete.H"
15 #include "BrOrgDeleteCmd.H"
16 #include "Response.H"
17 
18 using std::auto_ptr;
19 
20 LIBEPP_NICBR_NS_BEGIN
21 
23 class BrOrgDelete : public ContactDelete
24 {
25 public:
27  BrOrgDelete(const ActionType type = BR_ORG_DELETE) : ContactDelete(type)
28  {
29  if (type == BR_ORG_DELETE) {
30  _command = auto_ptr<BrOrgDeleteCmd>(new BrOrgDeleteCmd());
31  _response = auto_ptr<Response>(new Response());
32  }
33  }
34 
36 
39  void set_xml_template(const string &xml_template);
40 
42 
46  {
47  return (BrOrgDeleteCmd*) _command.get();
48  }
49 
50 };
51 
52 LIBEPP_NICBR_NS_END
53 #endif // __BR_ORG_DELETE_H__
EPP BrOrgDeleteCmd Class.
Definition: BrOrgDeleteCmd.H:21
EPP Response Class.
Definition: Response.H:24
Project defines.
EPP Response Class.
auto_ptr< Response > _response
Generic response.
Definition: Action.H:79
BrOrgDelete(const ActionType type=BR_ORG_DELETE)
Constructor.
Definition: BrOrgDelete.H:27
EPP BrOrgDelete Class.
Definition: BrOrgDelete.H:23
void set_xml_template(const string &xml_template)
Sets XML template.
EPP ContactDelete Class.
auto_ptr< Command > _command
Generic command.
Definition: Action.H:76
ActionType
Action Types.
Definition: CommonData.H:23
EPP BrOrgDeleteCmd Class.
EPP ContactDelete Class.
Definition: ContactDelete.H:22
BrOrgDeleteCmd * get_command()
Returns raw pointer to the command.
Definition: BrOrgDelete.H:45