00001 /* ${copyright}$ */ 00002 /* $Id: BrOrgInfo.H 543 2006-03-07 12:31:53Z cesar $ */ 00007 #ifndef __BR_ORG_INFO_H__ 00008 #define __BR_ORG_INFO_H__ 00009 00010 #include <memory> 00011 00012 #include "libepp_nicbr.H" 00013 00014 #include "ContactInfo.H" 00015 #include "BrOrgInfoCmd.H" 00016 #include "BrOrgInfoRsp.H" 00017 00018 using std::auto_ptr; 00019 00020 LIBEPP_NICBR_NS_BEGIN 00021 00023 class BrOrgInfo : public ContactInfo 00024 { 00025 public: 00027 BrOrgInfo(const ActionType type = BR_ORG_INFO) : ContactInfo(type) 00028 { 00029 if (type == BR_ORG_INFO) { 00030 _command = auto_ptr<BrOrgInfoCmd>(new BrOrgInfoCmd()); 00031 _response = auto_ptr<BrOrgInfoRsp>(new BrOrgInfoRsp()); 00032 } 00033 } 00034 00036 00039 void set_xml_template(const string &xml_template); 00040 00042 00045 BrOrgInfoCmd* get_command() 00046 { 00047 return (BrOrgInfoCmd*) _command.get(); 00048 } 00049 00051 00054 BrOrgInfoRsp* get_response() 00055 { 00056 return (BrOrgInfoRsp*) _response.get(); 00057 } 00058 00059 }; 00060 00061 LIBEPP_NICBR_NS_END 00062 #endif //__BR_ORG_INFO_H__