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: XMLReaderFactory.hpp 932889 2010-04-11 13:10:10Z borisk $
*/
#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
SAXException.hpp
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition: PlatformUtils.hpp:121
SAXNotSupportedException
Definition: SAXException.hpp:161
XMLGrammarPool
Definition: XMLGrammarPool.hpp:43
SAX2_EXPORT
#define SAX2_EXPORT
Definition: XercesDefs.hpp:165
SAX2XMLReader.hpp
MemoryManager
Configurable memory manager.
Definition: MemoryManager.hpp:39
SAX2XMLReader
Definition: SAX2XMLReader.hpp:42
XMLCh
uint16_t XMLCh
Definition: Xerces_autoconf_config.hpp:118
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
XMLReaderFactory::createXMLReader
static SAX2XMLReader * createXMLReader(MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager, XMLGrammarPool *const gramPool=0)
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
XMLReaderFactory
Creates a SAX2 parser (SAX2XMLReader).
Definition: XMLReaderFactory.hpp:42