00001 /* ${copyright}$ */ 00002 /* $Id: BrOrgCreate.H 543 2006-03-07 12:31:53Z cesar $ */ 00007 #ifndef __BR_ORG_CREATE_H__ 00008 #define __BR_ORG_CREATE_H__ 00009 00010 #include <memory> 00011 00012 #include "libepp_nicbr.H" 00013 00014 #include "ContactCreate.H" 00015 #include "BrOrgCreateCmd.H" 00016 #include "ContactCreateRsp.H" 00017 00018 using std::auto_ptr; 00019 00020 LIBEPP_NICBR_NS_BEGIN 00021 00023 class BrOrgCreate : public ContactCreate 00024 { 00025 public: 00027 BrOrgCreate(const ActionType type = BR_ORG_CREATE) : ContactCreate(type) 00028 { 00029 if (type == BR_ORG_CREATE) { 00030 _command = auto_ptr<BrOrgCreateCmd>(new BrOrgCreateCmd()); 00031 _response = auto_ptr<ContactCreateRsp>(new ContactCreateRsp()); 00032 } 00033 } 00034 00036 00039 void set_xml_template(const string &xml_template); 00040 00042 00045 BrOrgCreateCmd* get_command() 00046 { 00047 return (BrOrgCreateCmd*) _command.get(); 00048 } 00049 00050 }; 00051 00052 LIBEPP_NICBR_NS_END 00053 #endif //__BR_ORG_CREATE_H__