00001 /* ${copyright}$ */ 00002 /* $Id: BrDomainCreate.H 543 2006-03-07 12:31:53Z cesar $ */ 00007 #ifndef __BR_DOMAIN_CREATE_H__ 00008 #define __BR_DOMAIN_CREATE_H__ 00009 00010 #include "DomainCreate.H" 00011 #include "BrDomainCreateCmd.H" 00012 #include "BrDomainCreateRsp.H" 00013 00014 LIBEPP_NICBR_NS_BEGIN 00015 00017 class BrDomainCreate : public DomainCreate 00018 { 00019 public: 00020 00022 BrDomainCreate(const ActionType type = BR_DOMAIN_CREATE) 00023 : DomainCreate(type) 00024 { 00025 if (type == BR_DOMAIN_CREATE) { 00026 _command = auto_ptr<BrDomainCreateCmd>(new BrDomainCreateCmd()); 00027 _response = auto_ptr<BrDomainCreateRsp>(new BrDomainCreateRsp()); 00028 } 00029 } 00030 00032 00035 void set_xml_template(const string &xml_template); 00036 00038 00041 BrDomainCreateCmd* get_command() 00042 { 00043 return (BrDomainCreateCmd *) _command.get(); 00044 } 00045 00047 00050 BrDomainCreateRsp* get_response() 00051 { 00052 return (BrDomainCreateRsp *) _response.get(); 00053 } 00054 }; 00055 00056 LIBEPP_NICBR_NS_END 00057 #endif //__BR_DOMAIN_CREATE_H__