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 #ifndef HANDLERBASE_HPP
00110 #define HANDLERBASE_HPP
00111
00112 #include <xercesc/sax/DocumentHandler.hpp>
00113 #include <xercesc/sax/DTDHandler.hpp>
00114 #include <xercesc/sax/EntityResolver.hpp>
00115 #include <xercesc/sax/ErrorHandler.hpp>
00116 #include <xercesc/sax/SAXParseException.hpp>
00117
00118 XERCES_CPP_NAMESPACE_BEGIN
00119
00120 class Locator;
00121 class AttributeList;
00122
00143 class HandlerBase :
00144
00145 public EntityResolver, public DTDHandler, public DocumentHandler
00146 , public ErrorHandler
00147 {
00148 public:
00166 virtual void characters
00167 (
00168 const XMLCh* const chars
00169 , const unsigned int length
00170 );
00171
00184 virtual void endDocument();
00185
00199 virtual void endElement(const XMLCh* const name);
00200
00216 virtual void ignorableWhitespace
00217 (
00218 const XMLCh* const chars
00219 , const unsigned int length
00220 );
00221
00237 virtual void processingInstruction
00238 (
00239 const XMLCh* const target
00240 , const XMLCh* const data
00241 );
00242
00248 virtual void resetDocument();
00250
00265 virtual void setDocumentLocator(const Locator* const locator);
00266
00279 virtual void startDocument();
00280
00295 virtual void startElement
00296 (
00297 const XMLCh* const name
00298 , AttributeList& attributes
00299 );
00300
00302
00327 virtual InputSource* resolveEntity
00328 (
00329 const XMLCh* const publicId
00330 , const XMLCh* const systemId
00331 );
00332
00334
00351 virtual void error(const SAXParseException& exc);
00352
00370 virtual void fatalError(const SAXParseException& exc);
00371
00386 virtual void warning(const SAXParseException& exc);
00387
00393 virtual void resetErrors();
00394
00396
00397
00400
00414 virtual void notationDecl
00415 (
00416 const XMLCh* const name
00417 , const XMLCh* const publicId
00418 , const XMLCh* const systemId
00419 );
00420
00426 virtual void resetDocType();
00427
00442 virtual void unparsedEntityDecl
00443 (
00444 const XMLCh* const name
00445 , const XMLCh* const publicId
00446 , const XMLCh* const systemId
00447 , const XMLCh* const notationName
00448 );
00450
00451 HandlerBase() {};
00452 virtual ~HandlerBase() {};
00453
00454 private:
00455
00456
00457
00458 HandlerBase(const HandlerBase&);
00459 HandlerBase& operator=(const HandlerBase&);
00460 };
00461
00462
00463
00464
00465
00466 inline void HandlerBase::characters(const XMLCh* const
00467 , const unsigned int)
00468 {
00469 }
00470
00471 inline void HandlerBase::endDocument()
00472 {
00473 }
00474
00475 inline void HandlerBase::endElement(const XMLCh* const)
00476 {
00477 }
00478
00479 inline void HandlerBase::error(const SAXParseException&)
00480 {
00481 }
00482
00483 inline void HandlerBase::fatalError(const SAXParseException& exc)
00484 {
00485 throw exc;
00486 }
00487
00488 inline void
00489 HandlerBase::ignorableWhitespace( const XMLCh* const
00490 , const unsigned int)
00491 {
00492 }
00493
00494 inline void HandlerBase::notationDecl( const XMLCh* const
00495 , const XMLCh* const
00496 , const XMLCh* const)
00497 {
00498 }
00499
00500 inline void
00501 HandlerBase::processingInstruction( const XMLCh* const
00502 , const XMLCh* const)
00503 {
00504 }
00505
00506 inline void HandlerBase::resetErrors()
00507 {
00508 }
00509
00510 inline void HandlerBase::resetDocument()
00511 {
00512 }
00513
00514 inline void HandlerBase::resetDocType()
00515 {
00516 }
00517
00518 inline InputSource*
00519 HandlerBase::resolveEntity( const XMLCh* const
00520 , const XMLCh* const)
00521 {
00522 return 0;
00523 }
00524
00525 inline void
00526 HandlerBase::unparsedEntityDecl(const XMLCh* const
00527 , const XMLCh* const
00528 , const XMLCh* const
00529 , const XMLCh* const)
00530 {
00531 }
00532
00533 inline void HandlerBase::setDocumentLocator(const Locator* const)
00534 {
00535 }
00536
00537 inline void HandlerBase::startDocument()
00538 {
00539 }
00540
00541 inline void
00542 HandlerBase::startElement( const XMLCh* const
00543 , AttributeList&)
00544 {
00545 }
00546
00547 inline void HandlerBase::warning(const SAXParseException&)
00548 {
00549 }
00550
00551 XERCES_CPP_NAMESPACE_END
00552
00553 #endif