include/DomainDelete.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: DomainDelete.H 1006 2009-02-19 20:29:57Z rafael $ */
00007 #ifndef __DOMAIN_DELETE_H__
00008 #define __DOMAIN_DELETE_H__
00009 
00010 #include <memory>
00011 
00012 #include "libepp_nicbr.H"
00013 
00014 #include "Action.H"
00015 #include "DomainDeleteCmd.H"
00016 #include "Response.H"
00017 
00018 using std::auto_ptr;
00019 
00020 LIBEPP_NICBR_NS_BEGIN
00021 
00023 class DomainDelete : public Action
00024 {
00025 public:
00026 
00028   DomainDelete(const ActionType type = DOMAIN_DELETE) : Action(type)
00029   {
00030     if (type == DOMAIN_DELETE) {
00031       _command = auto_ptr<DomainDeleteCmd>(new DomainDeleteCmd());
00032       _response = auto_ptr<Response>(new Response());
00033     }
00034   }
00035 
00037 
00040   void set_xml_template(const string &xml_template);
00041 
00043 
00047   void set_response(const string &xml_payload, DomParser *parser) 
00048   {
00049     get_response()->reset();
00050     parser->parse_domain_delete_rsp(xml_payload, get_response());
00051   }
00052 
00054 
00057   DomainDeleteCmd* get_command() 
00058   {
00059     return (DomainDeleteCmd*) _command.get(); 
00060   }
00061 
00063 
00066   Response* get_response() 
00067   { 
00068     return (Response*) _response.get(); 
00069   }
00070 };
00071 
00072 LIBEPP_NICBR_NS_END
00073 #endif // __DOMAIN_DELETE_H__

Generated on Tue Mar 17 16:03:07 2009 for libepp_nicbr by  doxygen 1.4.7