| API Docs for SAX and DOM |
| Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members # DocumentHandler.hpp Go to the documentation of this file.
    00001 /*
    00002  * Copyright 1999-2000,2004 The Apache Software Foundation.
    00003  *
    00004  * Licensed under the Apache License, Version 2.0 (the "License");
    00005  * you may not use this file except in compliance with the License.
    00006  * You may obtain a copy of the License at
    00007  *
    00008  *      http://www.apache.org/licenses/LICENSE-2.0
    00009  *
    00010  * Unless required by applicable law or agreed to in writing, software
    00011  * distributed under the License is distributed on an "AS IS" BASIS,
    00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00013  * See the License for the specific language governing permissions and
    00014  * limitations under the License.
    00015  */
    00016
    00017 /*
    00018  * $Log: DocumentHandler.hpp,v $
    00019  * Revision 1.4  2004/09/08 13:56:19  peiyongz
    00020  * Apache License Version 2.0
    00021  *
    00022  * Revision 1.3  2003/03/07 18:10:06  tng
    00023  * Return a reference instead of void for operator=
    00024  *
    00025  * Revision 1.2  2002/11/04 14:56:25  tng
    00026  * C++ Namespace Support.
    00027  *
    00028  * Revision 1.1.1.1  2002/02/01 22:22:08  peiyongz
    00029  * sane_include
    00030  *
    00031  * Revision 1.6  2000/03/02 19:54:34  roddey
    00032  * This checkin includes many changes done while waiting for the
    00033  * 1.1.0 code to be finished. I can't list them all here, but a list is
    00034  * available elsewhere.
    00035  *
    00036  * Revision 1.5  2000/02/24 20:12:55  abagchi
    00037  * Swat for removing Log from API docs
    00038  *
    00039  * Revision 1.4  2000/02/12 03:31:55  rahulj
    00040  * Removed duplicate CVS Log entries.
    00041  *
    00042  * Revision 1.3  2000/02/12 01:27:19  aruna1
    00043  * Documentation updated
    00044  *
    00045  * Revision 1.2  2000/02/06 07:47:57  rahulj
    00046  * Year 2K copyright swat.
    00047  *
    00048  * Revision 1.1.1.1  1999/11/09 01:07:43  twl
    00049  * Initial checkin
    00050  *
    00051  * Revision 1.2  1999/11/08 20:44:54  rahul
    00052  * Swat for adding in Product name and CVS comment log variable.
    00053  *
    00054  */
    00055
    00056
    00057 #ifndef DOCUMENTHANDLER_HPP
    00058 #define DOCUMENTHANDLER_HPP
    00059
    00060 #include <xercesc/util/XercesDefs.hpp>
    00061
    00062 XERCES_CPP_NAMESPACE_BEGIN
    00063
    00064 class AttributeList;
    00065 class Locator;
    00066
    00095 class  DocumentHandler
    00096 {
    00097 public:
    00101     DocumentHandler()
    00102     {
    00103     }
    00104
    00106     virtual ~DocumentHandler()
    00107     {
    00108     }
    00110
    00138     virtual void characters
    00139     (
    00140         const   XMLCh* const    chars
    00141         , const unsigned int    length
    00142     ) = 0;
    00143
    00156     virtual void endDocument () = 0;
    00157
    00173     virtual void endElement(const XMLCh* const name) = 0;
    00174
    00198     virtual void ignorableWhitespace
    00199     (
    00200         const   XMLCh* const    chars
    00201         , const unsigned int    length
    00202     ) = 0;
    00203
    00221     virtual void processingInstruction
    00222     (
    00223         const   XMLCh* const    target
    00224         , const XMLCh* const    data
    00225     ) = 0;
    00226
    00234     virtual void resetDocument() = 0;
    00235
    00264     virtual void setDocumentLocator(const Locator* const locator) = 0;
    00265
    00276     virtual void startDocument() = 0;
    00277
    00300     virtual void startElement
    00301     (
    00302         const   XMLCh* const    name
    00303         ,       AttributeList&  attrs
    00304     ) = 0;
    00305
    00307
    00308 private :
    00309     /* Unimplemented Constructors and operators */
    00310     /* Copy constructor */
    00311     DocumentHandler(const DocumentHandler&);
    00313     DocumentHandler& operator=(const DocumentHandler&);
    00314 };
    00315
    00316 XERCES_CPP_NAMESPACE_END
    00317
    00318 #endif

Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved.