Wrapper4DOMLSInput.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_WRAPPER4DOMLSINPUT_HPP)
#define XERCESC_INCLUDE_GUARD_WRAPPER4DOMLSINPUT_HPP
#include <xercesc/sax/InputSource.hpp>
XERCES_CPP_NAMESPACE_BEGIN
class DOMLSInput;
class DOMLSResourceResolver;
class XMLPARSER_EXPORT Wrapper4DOMLSInput: public InputSource
{
public:
Wrapper4DOMLSInput
(
DOMLSInput* const inputSource
, DOMLSResourceResolver* entityResolver = 0
, const bool adoptFlag = true
, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
);
virtual ~Wrapper4DOMLSInput();
// -----------------------------------------------------------------------
BinInputStream* makeStream() const;
// -----------------------------------------------------------------------
const XMLCh* getEncoding() const;
const XMLCh* getPublicId() const;
const XMLCh* getSystemId() const;
bool getIssueFatalErrorIfNotFound() const;
// -----------------------------------------------------------------------
void setEncoding(const XMLCh* const encodingStr);
void setPublicId(const XMLCh* const publicId);
void setSystemId(const XMLCh* const systemId);
void setIssueFatalErrorIfNotFound(const bool flag);
private:
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
Wrapper4DOMLSInput(const Wrapper4DOMLSInput&);
Wrapper4DOMLSInput& operator=(const Wrapper4DOMLSInput&);
// -----------------------------------------------------------------------
// Private data members
// -----------------------------------------------------------------------
bool fAdoptInputSource,
fForceXMLChEncoding;
DOMLSInput* fInputSource;
DOMLSResourceResolver* fEntityResolver;
};
XERCES_CPP_NAMESPACE_END
#endif
InputSource.hpp
XMLPARSER_EXPORT
#define XMLPARSER_EXPORT
Definition XercesDefs.hpp:163
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
BinInputStream
Definition BinInputStream.hpp:30
DOMLSInput
This interface represents a single input source for an XML entity.
Definition DOMLSInput.hpp:60
DOMLSResourceResolver
DOMLSResourceResolver provides a way for applications to redirect references to external entities.
Definition DOMLSResourceResolver.hpp:54
InputSource
A single input source for an XML entity.
Definition InputSource.hpp:63
MemoryManager
Configurable memory manager.
Definition MemoryManager.hpp:40
Wrapper4DOMLSInput
Wrap a DOMLSInput object and make it behave like a SAX InputSource.
Definition Wrapper4DOMLSInput.hpp:36
Wrapper4DOMLSInput::~Wrapper4DOMLSInput
virtual ~Wrapper4DOMLSInput()
Destructor.
Wrapper4DOMLSInput::setPublicId
void setPublicId(const XMLCh *const publicId)
Set the public identifier for this input source.
Wrapper4DOMLSInput::getEncoding
const XMLCh * getEncoding() const
An input source can be set to force the parser to assume a particular encoding for the data that inpu...
Wrapper4DOMLSInput::setIssueFatalErrorIfNotFound
void setIssueFatalErrorIfNotFound(const bool flag)
Indicates if the parser should issue fatal error if this input source is not found.
Wrapper4DOMLSInput::getIssueFatalErrorIfNotFound
bool getIssueFatalErrorIfNotFound() const
Get the flag that indicates if the parser should issue fatal error if this input source is not found.
Wrapper4DOMLSInput::makeStream
BinInputStream * makeStream() const
Makes the byte stream for this input source.
Wrapper4DOMLSInput::setSystemId
void setSystemId(const XMLCh *const systemId)
Set the system identifier for this input source.
Wrapper4DOMLSInput::getSystemId
const XMLCh * getSystemId() const
Get the system identifier for this input source.
Wrapper4DOMLSInput::getPublicId
const XMLCh * getPublicId() const
Get the public identifier for this input source.
Wrapper4DOMLSInput::Wrapper4DOMLSInput
Wrapper4DOMLSInput(DOMLSInput *const inputSource, DOMLSResourceResolver *entityResolver=0, const bool adoptFlag=true, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
Constructor.
Wrapper4DOMLSInput::setEncoding
void setEncoding(const XMLCh *const encodingStr)
Set the encoding which will be required for use with the XML text read via a stream opened by this in...
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition PlatformUtils.hpp:121