DOMImplementationLS.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: DOMImplementationLS.hpp 932889 2010-04-11 13:10:10Z borisk $
*/
#if !defined(XERCESC_INCLUDE_GUARD_DOMIMPLEMENTATIONLS_HPP)
#define XERCESC_INCLUDE_GUARD_DOMIMPLEMENTATIONLS_HPP
#include <xercesc/util/PlatformUtils.hpp>
XERCES_CPP_NAMESPACE_BEGIN
class DOMLSParser;
class DOMLSSerializer;
class DOMLSInput;
class DOMLSOutput;
class MemoryManager;
class XMLGrammarPool;
class CDOM_EXPORT DOMImplementationLS
{
protected:
// -----------------------------------------------------------------------
// Hidden constructors
// -----------------------------------------------------------------------
DOMImplementationLS() {};
private:
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
DOMImplementationLS(const DOMImplementationLS &);
DOMImplementationLS & operator = (const DOMImplementationLS &);
public:
// -----------------------------------------------------------------------
// All constructors are hidden, just the destructor is available
// -----------------------------------------------------------------------
virtual ~DOMImplementationLS() {};
// -----------------------------------------------------------------------
// Public constants
// -----------------------------------------------------------------------
enum DOMImplementationLSMode
{
MODE_SYNCHRONOUS = 1,
MODE_ASYNCHRONOUS = 2
};
// -----------------------------------------------------------------------
// Virtual DOMImplementationLS interface
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
// Factory create methods
// -----------------------------------------------------------------------
virtual DOMLSParser* createLSParser(const DOMImplementationLSMode mode,
const XMLCh* const schemaType,
MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager,
XMLGrammarPool* const gramPool = 0) = 0;
virtual DOMLSSerializer* createLSSerializer(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager) = 0;
virtual DOMLSInput* createLSInput(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager) = 0;
virtual DOMLSOutput* createLSOutput(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager) = 0;
};
XERCES_CPP_NAMESPACE_END
#endif
DOMLSInput
This interface represents a single input source for an XML entity.
Definition: DOMLSInput.hpp:59
DOMImplementationLS::DOMImplementationLSMode
DOMImplementationLSMode
Create a synchronous or an asynchronous DOMLSParser.
Definition: DOMImplementationLS.hpp:94
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition: PlatformUtils.hpp:121
XMLGrammarPool
Definition: XMLGrammarPool.hpp:43
DOMLSParser
DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...
Definition: DOMLSParser.hpp:47
DOMLSSerializer
Definition: DOMLSSerializer.hpp:275
DOMLSOutput
This interface represents an output destination for data.
Definition: DOMLSOutput.hpp:39
DOMImplementationLS::DOMImplementationLS
DOMImplementationLS()
Definition: DOMImplementationLS.hpp:57
PlatformUtils.hpp
MemoryManager
Configurable memory manager.
Definition: MemoryManager.hpp:39
CDOM_EXPORT
#define CDOM_EXPORT
Definition: XercesDefs.hpp:166
XMLCh
uint16_t XMLCh
Definition: Xerces_autoconf_config.hpp:118
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
DOMImplementationLS::~DOMImplementationLS
virtual ~DOMImplementationLS()
Destructor.
Definition: DOMImplementationLS.hpp:80
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
DOMImplementationLS
Definition: DOMImplementationLS.hpp:49