source: NonGTP/Xerces/xerces/include/xercesc/validators/DTD/XMLDTDDescriptionImpl.hpp @ 358

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