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$
*/
#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
PlatformUtils.hpp
CDOM_EXPORT
#define CDOM_EXPORT
Definition XercesDefs.hpp:166
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
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
DOMImplementationLS
Definition DOMImplementationLS.hpp:50
DOMImplementationLS::createLSParser
virtual DOMLSParser * createLSParser(const DOMImplementationLSMode mode, const XMLCh *const schemaType, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager, XMLGrammarPool *const gramPool=0)=0
Create a new DOMLSParser.
DOMImplementationLS::createLSInput
virtual DOMLSInput * createLSInput(MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)=0
Create a new "empty" DOMLSInput.
DOMImplementationLS::DOMImplementationLSMode
DOMImplementationLSMode
Create a synchronous or an asynchronous DOMLSParser.
Definition DOMImplementationLS.hpp:95
DOMImplementationLS::createLSSerializer
virtual DOMLSSerializer * createLSSerializer(MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)=0
Create a new DOMLSSerializer.
DOMImplementationLS::createLSOutput
virtual DOMLSOutput * createLSOutput(MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)=0
Create a new "empty" LSOutput.
DOMImplementationLS::DOMImplementationLS
DOMImplementationLS()
Definition DOMImplementationLS.hpp:57
DOMImplementationLS::~DOMImplementationLS
virtual ~DOMImplementationLS()
Destructor.
Definition DOMImplementationLS.hpp:80
DOMLSInput
This interface represents a single input source for an XML entity.
Definition DOMLSInput.hpp:60
DOMLSOutput
This interface represents an output destination for data.
Definition DOMLSOutput.hpp:40
DOMLSParser
DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...
Definition DOMLSParser.hpp:48
DOMLSSerializer
Definition DOMLSSerializer.hpp:276
MemoryManager
Configurable memory manager.
Definition MemoryManager.hpp:40
XMLGrammarPool
Definition XMLGrammarPool.hpp:44
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition PlatformUtils.hpp:121