source: NonGTP/Xerces/xerces/include/xercesc/framework/XMLDTDDescription.hpp @ 358

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

xerces added

Line 
1/*
2 * Copyright 1999-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: XMLDTDDescription.hpp,v $
19 * Revision 1.5  2004/09/29 21:23:02  peiyongz
20 * default implementation provided
21 *
22 * Revision 1.4  2004/09/08 13:55:58  peiyongz
23 * Apache License Version 2.0
24 *
25 * Revision 1.3  2004/04/07 14:09:22  peiyongz
26 * systemId (to replace rootElemName) as DTDGrammar Key
27 *
28 * Revision 1.2  2003/10/14 15:17:47  peiyongz
29 * Implementation of Serialization/Deserialization
30 *
31 * Revision 1.1  2003/06/20 18:37:39  peiyongz
32 * Stateless Grammar Pool :: Part I
33 *
34 * $Id: XMLDTDDescription.hpp,v 1.5 2004/09/29 21:23:02 peiyongz Exp $
35 *
36 */
37
38#if !defined(XMLDTDDESCRIPTION_HPP)
39#define XMLDTDDESCRIPTION_HPP
40
41#include <xercesc/framework/XMLGrammarDescription.hpp>
42
43XERCES_CPP_NAMESPACE_BEGIN
44
45class XMLPARSER_EXPORT XMLDTDDescription : public XMLGrammarDescription
46{
47public :
48    // -----------------------------------------------------------------------
49    /** @name Virtual destructor for derived classes */
50    // -----------------------------------------------------------------------
51    //@{
52    /**
53      * virtual destructor
54      *
55      */
56    virtual ~XMLDTDDescription();
57    //@}
58
59    // -----------------------------------------------------------------------
60    /** @name Implementation of Grammar Description Interface */
61    // -----------------------------------------------------------------------
62    //@{     
63    /**
64      * getGrammarType
65      *
66      */
67    virtual Grammar::GrammarType   getGrammarType() const
68    {
69        return Grammar::DTDGrammarType;
70    }
71    //@}
72
73    // -----------------------------------------------------------------------
74    /** @name The DTDDescription Interface */
75    // -----------------------------------------------------------------------
76    //@{     
77    /**
78      * Getter
79      *
80      */
81    virtual const XMLCh*          getRootName() const = 0;
82    virtual const XMLCh*          getSystemId() const {return 0;};
83
84    /**
85      * Setter
86      *
87      */
88    virtual void                  setRootName(const XMLCh* const) = 0;
89    virtual void                  setSystemId(const XMLCh* const) {};
90    //@}
91   
92    /***
93     * Support for Serialization/De-serialization
94     ***/
95    DECL_XSERIALIZABLE(XMLDTDDescription)
96
97protected :
98    // -----------------------------------------------------------------------
99    /**  Hidden Constructors */
100    // -----------------------------------------------------------------------
101    //@{
102    XMLDTDDescription(MemoryManager* const memMgr = XMLPlatformUtils::fgMemoryManager);
103    //@}
104
105private :
106    // -----------------------------------------------------------------------
107    /** name  Unimplemented copy constructor and operator= */
108    // -----------------------------------------------------------------------
109    //@{
110    XMLDTDDescription(const XMLDTDDescription& );
111    XMLDTDDescription& operator=(const XMLDTDDescription& );
112    //@}
113
114};
115
116
117XERCES_CPP_NAMESPACE_END
118
119#endif
Note: See TracBrowser for help on using the repository browser.