addressfactory.h

来自「java开源的企业总线.xmlBlaster」· C头文件 代码 · 共 70 行

H
70
字号
/*------------------------------------------------------------------------------Name:      AddressFactory.hProject:   xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE fileComment:   Factory Object for parsing org::xmlBlaster::util::qos::address::Address objects.Author:    laghi------------------------------------------------------------------------------*//** * Factory for the creation (SAX parsing from std::string) of org::xmlBlaster::util::qos::address::AddressBase objects. * The created org::xmlBlaster::util::qos::address::AddressBase objects can easely be converted to org::xmlBlaster::util::qos::address::Address and * org::xmlBlaster::util::qos::address::CallbackAddress objects. * See classes of the object it creates. * @see org::xmlBlaster::util::qos::address::AddressBase * @see org::xmlBlaster::util::qos::address::Address * @see org::xmlBlaster::util::qos::address::CallbackAddress */#ifndef _UTIL_CFG_ADDRESSFACTORY_H#define _UTIL_CFG_ADDRESSFACTORY_H#include <util/parser/XmlHandlerBase.h>#include <util/qos/address/AddressBase.h>namespace org { namespace xmlBlaster { namespace util { namespace qos { namespace address {class Dll_Export AddressFactory : public parser::XmlHandlerBase{private:   const std::string ME;   org::xmlBlaster::util::qos::address::AddressBaseRef address_;   std::string attributeKey_;   bool inAttribute_;   ClientProperty* attribute_;   /**   * Copy constructor   */   AddressFactory(const AddressFactory& rhs);   /**   * Assignment constructor   */   AddressFactory& operator=(const AddressFactory& rhs);public:   AddressFactory(org::xmlBlaster::util::Global& global);   ~AddressFactory();   void reset(const AddressBaseRef& address);   org::xmlBlaster::util::qos::address::AddressBaseRef getAddress();   /**    * Called for SAX callback start tag    */   // void startElement(const std::string& uri, const std::string& localName, const std::string& name, const std::string& character, Attributes attrs)   void startElement(const std::string &name, const parser::AttributeMap& attrs);   /** End element. */   // public final void endElement(String uri, String localName, String name, StringBuffer character) {   void endElement(const std::string &name);   org::xmlBlaster::util::qos::address::AddressBaseRef readAddress(const std::string& litteral, const org::xmlBlaster::util::qos::address::AddressBaseRef& address);};}}}}} // namespaces#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?