source: obsolete/tags/VUT/0.4/GtpVisibilityPreprocessor/support/xerces/include/xercesc/validators/DTD/DocTypeHandler.hpp @ 358

Revision 358, 5.0 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1/*
2 * Copyright 1999-2000,2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * $Log: DocTypeHandler.hpp,v $
19 * Revision 1.5  2004/09/08 13:56:50  peiyongz
20 * Apache License Version 2.0
21 *
22 * Revision 1.4  2003/03/07 18:17:12  tng
23 * Return a reference instead of void for operator=
24 *
25 * Revision 1.3  2002/11/04 14:50:40  tng
26 * C++ Namespace Support.
27 *
28 * Revision 1.2  2002/08/14 15:20:38  knoaman
29 * [Bug 3111] Problem with LexicalHandler::startDTD() and LexicalHandler::endDTD().
30 *
31 * Revision 1.1.1.1  2002/02/01 22:22:43  peiyongz
32 * sane_include
33 *
34 * Revision 1.5  2001/06/19 16:43:46  tng
35 * Correct description of DocTypeHandler
36 *
37 * Revision 1.4  2000/03/02 19:55:39  roddey
38 * This checkin includes many changes done while waiting for the
39 * 1.1.0 code to be finished. I can't list them all here, but a list is
40 * available elsewhere.
41 *
42 * Revision 1.3  2000/02/24 20:16:49  abagchi
43 * Swat for removing Log from API docs
44 *
45 * Revision 1.2  2000/02/09 21:42:39  abagchi
46 * Copyright swat
47 *
48 * Revision 1.1.1.1  1999/11/09 01:03:21  twl
49 * Initial checkin
50 *
51 * Revision 1.2  1999/11/08 20:45:43  rahul
52 * Swat for adding in Product name and CVS comment log variable.
53 *
54 */
55
56
57
58#if !defined(DOCTYPEHANDLER_HPP)
59#define DOCTYPEHANDLER_HPP
60
61#include <xercesc/util/XercesDefs.hpp>
62#include <xercesc/framework/XMLNotationDecl.hpp>
63#include <xercesc/validators/DTD/DTDAttDef.hpp>
64#include <xercesc/validators/DTD/DTDElementDecl.hpp>
65#include <xercesc/validators/DTD/DTDEntityDecl.hpp>
66
67XERCES_CPP_NAMESPACE_BEGIN
68
69//
70//  This abstract class defines the document type handler API's which can be
71//  used to process the DTD events generated by the DTDScanner as it scans the
72//  internal and external subset.
73
74class VALIDATORS_EXPORT DocTypeHandler
75{
76public:
77    // -----------------------------------------------------------------------
78    //  Constructors and Destructor
79    // -----------------------------------------------------------------------
80    DocTypeHandler()
81    {
82    }
83
84    virtual ~DocTypeHandler()
85    {
86    }
87
88
89    // -----------------------------------------------------------------------
90    //  The document type handler virtual handler interface
91    // -----------------------------------------------------------------------
92    virtual void attDef
93    (
94        const   DTDElementDecl&     elemDecl
95        , const DTDAttDef&          attDef
96        , const bool                ignoring
97    ) = 0;
98
99    virtual void doctypeComment
100    (
101        const   XMLCh* const    comment
102    ) = 0;
103
104    virtual void doctypeDecl
105    (
106        const   DTDElementDecl& elemDecl
107        , const XMLCh* const    publicId
108        , const XMLCh* const    systemId
109        , const bool            hasIntSubset
110        , const bool            hasExtSubset = false
111    ) = 0;
112
113    virtual void doctypePI
114    (
115        const   XMLCh* const    target
116        , const XMLCh* const    data
117    ) = 0;
118
119    virtual void doctypeWhitespace
120    (
121        const   XMLCh* const    chars
122        , const unsigned int    length
123    ) = 0;
124
125    virtual void elementDecl
126    (
127        const   DTDElementDecl& decl
128        , const bool            isIgnored
129    ) = 0;
130
131    virtual void endAttList
132    (
133        const   DTDElementDecl& elemDecl
134    ) = 0;
135
136    virtual void endIntSubset() = 0;
137
138    virtual void endExtSubset() = 0;
139
140    virtual void entityDecl
141    (
142        const   DTDEntityDecl&  entityDecl
143        , const bool            isPEDecl
144        , const bool            isIgnored
145    ) = 0;
146
147    virtual void resetDocType() = 0;
148
149    virtual void notationDecl
150    (
151        const   XMLNotationDecl&    notDecl
152        , const bool                isIgnored
153    ) = 0;
154
155    virtual void startAttList
156    (
157        const   DTDElementDecl& elemDecl
158    ) = 0;
159
160    virtual void startIntSubset() = 0;
161
162    virtual void startExtSubset() = 0;
163
164    virtual void TextDecl
165    (
166        const   XMLCh* const    versionStr
167        , const XMLCh* const    encodingStr
168    ) = 0;
169
170
171private:
172    // -----------------------------------------------------------------------
173    //  Unimplemented constructors and operators
174    // -----------------------------------------------------------------------
175    DocTypeHandler(const DocTypeHandler&);
176    DocTypeHandler& operator=(const DocTypeHandler&);
177};
178
179XERCES_CPP_NAMESPACE_END
180
181#endif
Note: See TracBrowser for help on using the repository browser.