XMLReaderFactory.hpp
Go to the documentation of this file.
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id$
*/
#if !defined(XERCESC_INCLUDE_GUARD_XMLREADERFACTORY_HPP)
#define XERCESC_INCLUDE_GUARD_XMLREADERFACTORY_HPP
#include <xercesc/sax2/SAX2XMLReader.hpp>
#include <xercesc/sax/SAXException.hpp>
XERCES_CPP_NAMESPACE_BEGIN
class MemoryManager;
class XMLGrammarPool;
class SAX2_EXPORT XMLReaderFactory
{
protected: // really should be private, but that causes compiler warnings.
XMLReaderFactory() ;
~XMLReaderFactory() ;
public:
static SAX2XMLReader * createXMLReader( MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
, XMLGrammarPool* const gramPool = 0
) ;
static SAX2XMLReader * createXMLReader(const XMLCh* className) ;
private:
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
XMLReaderFactory(const XMLReaderFactory&);
XMLReaderFactory& operator=(const XMLReaderFactory&);
};
inline SAX2XMLReader * XMLReaderFactory::createXMLReader(const XMLCh *)
{
throw SAXNotSupportedException();
// unimplemented
return 0;
}
XERCES_CPP_NAMESPACE_END
#endif
SAX2XMLReader.hpp
SAXException.hpp
SAX2_EXPORT
#define SAX2_EXPORT
Definition: XercesDefs.hpp:165
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
XMLCh
uint16_t XMLCh
Definition: Xerces_autoconf_config.hpp:120
MemoryManager
Configurable memory manager.
Definition: MemoryManager.hpp:40
SAX2XMLReader
Definition: SAX2XMLReader.hpp:43
SAXNotSupportedException
Definition: SAXException.hpp:162
XMLGrammarPool
Definition: XMLGrammarPool.hpp:44
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition: PlatformUtils.hpp:121
XMLReaderFactory
Creates a SAX2 parser (SAX2XMLReader).
Definition: XMLReaderFactory.hpp:43
XMLReaderFactory::createXMLReader
static SAX2XMLReader * createXMLReader(MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager, XMLGrammarPool *const gramPool=0)
XMLReaderFactory::~XMLReaderFactory
~XMLReaderFactory()
XMLReaderFactory::XMLReaderFactory
XMLReaderFactory()