00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131 #ifndef INPUTSOURCE_HPP
00132 #define INPUTSOURCE_HPP
00133
00134 #include <xercesc/util/PlatformUtils.hpp>
00135
00136 XERCES_CPP_NAMESPACE_BEGIN
00137
00138 class BinInputStream;
00139
00140
00171 class InputSource : public XMemory
00172 {
00173 public:
00174
00175
00176
00183 virtual ~InputSource();
00185
00186
00187
00200 virtual BinInputStream* makeStream() const = 0;
00201
00203
00204
00205
00217 virtual const XMLCh* getEncoding() const;
00218
00219
00226 virtual const XMLCh* getPublicId() const;
00227
00228
00237 virtual const XMLCh* getSystemId() const;
00238
00247 virtual bool getIssueFatalErrorIfNotFound() const;
00248
00249 MemoryManager* getMemoryManager() const;
00250
00252
00253
00254
00257
00269 virtual void setEncoding(const XMLCh* const encodingStr);
00270
00271
00283 virtual void setPublicId(const XMLCh* const publicId);
00284
00301 virtual void setSystemId(const XMLCh* const systemId);
00302
00312 virtual void setIssueFatalErrorIfNotFound(const bool flag);
00313
00315
00316
00317 protected :
00318
00319
00320
00324 InputSource(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
00325
00331 InputSource(const XMLCh* const systemId,
00332 MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
00333
00340 InputSource
00341 (
00342 const XMLCh* const systemId
00343 , const XMLCh* const publicId
00344 , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
00345 );
00346
00352 InputSource(const char* const systemId,
00353 MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
00354
00361 InputSource
00362 (
00363 const char* const systemId
00364 , const char* const publicId
00365 , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
00366 );
00367
00369
00370
00371
00372
00373
00374 private:
00375
00376
00377
00378 InputSource(const InputSource&);
00379 InputSource& operator=(const InputSource&);
00380
00381
00382
00383
00384
00385
00386
00387
00388
00389
00390
00391
00392
00393
00394
00395
00396
00397
00398
00399
00400 MemoryManager* const fMemoryManager;
00401 XMLCh* fEncoding;
00402 XMLCh* fPublicId;
00403 XMLCh* fSystemId;
00404 bool fFatalErrorIfNotFound;
00405 };
00406
00407
00408
00409
00410
00411 inline const XMLCh* InputSource::getEncoding() const
00412 {
00413 return fEncoding;
00414 }
00415
00416 inline const XMLCh* InputSource::getPublicId() const
00417 {
00418 return fPublicId;
00419 }
00420
00421 inline const XMLCh* InputSource::getSystemId() const
00422 {
00423 return fSystemId;
00424 }
00425
00426 inline bool InputSource::getIssueFatalErrorIfNotFound() const
00427 {
00428 return fFatalErrorIfNotFound;
00429 }
00430
00431 inline MemoryManager* InputSource::getMemoryManager() const
00432 {
00433 return fMemoryManager;
00434 }
00435
00436
00437
00438
00439 inline void InputSource::setIssueFatalErrorIfNotFound(const bool flag)
00440 {
00441 fFatalErrorIfNotFound = flag;
00442 }
00443
00444 XERCES_CPP_NAMESPACE_END
00445
00446 #endif