Xerces-C++: Wrapper4InputSource.hpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22#if !defined(XERCESC_INCLUDE_GUARD_WRAPPER4INPUTSOURCE_HPP)

23#define XERCESC_INCLUDE_GUARD_WRAPPER4INPUTSOURCE_HPP

24

27

29

31

32

37{

38public:

41

54 , const bool adoptFlag = true

56

63

64

65

73

84

85

99

100

109

110

121

133

143

145

146

147

155

161

175

176

190

207

219

233

241

243

244

245private:

246

247

248

251

252

253

254

255 bool fAdoptInputSource;

257};

258

259

260

261

262

267

272

273

274

275

279

283

287

289

290#endif

#define XMLPARSER_EXPORT

Definition XercesDefs.hpp:163

#define XERCES_CPP_NAMESPACE_BEGIN

Definition XercesDefs.hpp:112

#define XERCES_CPP_NAMESPACE_END

Definition XercesDefs.hpp:113

char16_t XMLCh

Definition Xerces_autoconf_config.hpp:120

This interface represents a single input source for an XML entity.

Definition DOMLSInput.hpp:60

virtual void setBaseURI(const XMLCh *const baseURI)=0

Set the base URI to be used for resolving relative URIs to absolute URIs.

virtual void setByteStream(InputSource *stream)=0

Sets the byte stream for this input source.

virtual void setStringData(const XMLCh *data)=0

Sets the UTF-16 string for this input source.

virtual const XMLCh * getBaseURI() const =0

Get the base URI to be used for resolving relative URIs to absolute URIs.

virtual const XMLCh * getStringData() const =0

String data to parse.

A single input source for an XML entity.

Definition InputSource.hpp:63

Configurable memory manager.

Definition MemoryManager.hpp:40

Wrap a SAX InputSource object and make it behave like DOMLSInput.

Definition Wrapper4InputSource.hpp:37

virtual const XMLCh * getStringData() const

This wrapper doesn't support string data.

Definition Wrapper4InputSource.hpp:268

virtual void setByteStream(InputSource *stream)

This wrapper only exposes the given InputSource, no setting allowed.

Definition Wrapper4InputSource.hpp:284

virtual const XMLCh * getEncoding() const

An input source can be set to force the parser to assume a particular encoding for the data that inpu...

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...

virtual void setStringData(const XMLCh *data)

This wrapper only exposes the given InputSource, no setting allowed.

Definition Wrapper4InputSource.hpp:280

void release()

Called to indicate that this DOMInputSource is no longer in use and that the implementation may relin...

void setIssueFatalErrorIfNotFound(bool flag)

Indicates if the parser should issue fatal error if this input source is not found.

const XMLCh * getSystemId() const

Get the system identifier for this input source.

void setPublicId(const XMLCh *const publicId)

Set the public identifier for this input source.

Wrapper4InputSource(InputSource *const inputSource, const bool adoptFlag=true, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Constructor.

void setBaseURI(const XMLCh *const baseURI)

Set the base URI to be used for resolving relative URIs to absolute URIs.

Definition Wrapper4InputSource.hpp:276

virtual ~Wrapper4InputSource()

Destructor.

const XMLCh * getPublicId() const

Get the public identifier for this input source.

void setSystemId(const XMLCh *const systemId)

Set the system identifier for this input source.

virtual InputSource * getByteStream() const

Makes the byte stream for this input source.

bool getIssueFatalErrorIfNotFound() const

Get the flag that indicates if the parser should issue fatal error if this input source is not found.

const XMLCh * getBaseURI() const

Get the base URI to be used for resolving relative URIs to absolute URIs.

Definition Wrapper4InputSource.hpp:263

static MemoryManager * fgMemoryManager

The configurable memory manager.

Definition PlatformUtils.hpp:121