00001 /* ${copyright}$ */ 00002 /* $Id: BrDomainInfo.H 543 2006-03-07 12:31:53Z cesar $ */ 00007 #ifndef __BR_DOMAIN_INFO_H__ 00008 #define __BR_DOMAIN_INFO_H__ 00009 00010 #include "DomainInfo.H" 00011 #include "BrDomainInfoCmd.H" 00012 #include "BrDomainInfoRsp.H" 00013 00014 LIBEPP_NICBR_NS_BEGIN 00015 00017 class BrDomainInfo : public DomainInfo 00018 { 00019 public: 00020 00022 BrDomainInfo(const ActionType type = BR_DOMAIN_INFO) : DomainInfo(type) 00023 { 00024 if (type == BR_DOMAIN_INFO) { 00025 _command = auto_ptr<BrDomainInfoCmd>(new BrDomainInfoCmd()); 00026 _response = auto_ptr<BrDomainInfoRsp>(new BrDomainInfoRsp()); 00027 } 00028 } 00029 00031 00034 void set_xml_template(const string &xml_template); 00035 00037 00040 BrDomainInfoCmd* get_command() 00041 { 00042 return (BrDomainInfoCmd *) _command.get(); 00043 } 00044 00046 00049 BrDomainInfoRsp* get_response() 00050 { 00051 return (BrDomainInfoRsp *) _response.get(); 00052 } 00053 }; 00054 00055 LIBEPP_NICBR_NS_END 00056 #endif //__BR_DOMAIN_INFO_H__