source: icXML/icXML-devel/src/xercesc/dom/impl/DOMEntityImpl.hpp @ 2777

Last change on this file since 2777 was 2777, checked in by cameron, 7 years ago

Set up to use xercesc/icxercesc root-relative paths for all includes

File size: 3.6 KB
Line 
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements.  See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License.  You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18/*
19 * $Id: DOMEntityImpl.hpp 641193 2008-03-26 08:06:57Z borisk $
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_DOMENTITYIMPL_HPP)
23#define XERCESC_INCLUDE_GUARD_DOMENTITYIMPL_HPP
24
25//
26//  This file is part of the internal implementation of the C++ XML DOM.
27//  It should NOT be included or used directly by application programs.
28//
29//  Applications should include the file <xercesc/dom/DOM.hpp> for the entire
30//  DOM API, or xercesc/dom/DOM*.hpp for individual DOM classes, where the class
31//  name is substituded for the *.
32//
33
34#include <xercesc/util/XercesDefs.hpp>
35#include <icxercesc/dom/impl/DOMNodeImpl.hpp>
36#include <xercesc/dom/impl/DOMParentNode.hpp>
37#include <xercesc/dom/DOMEntity.hpp>
38
39XERCES_CPP_NAMESPACE_BEGIN
40
41
42class    DOMEntityReference;
43
44class CDOM_EXPORT DOMEntityImpl: public DOMEntity {
45protected:
46    DOMNodeImpl      fNode;
47    DOMParentNode    fParent;
48
49    const XMLCh *   fName;
50    const XMLCh *   fPublicId;
51    const XMLCh *   fSystemId;
52    const XMLCh *   fNotationName;
53    DOMEntityReference* fRefEntity;
54
55    // New data introduced in DOM Level 3
56    const XMLCh*          fInputEncoding;
57    const XMLCh*          fXmlEncoding;
58    const XMLCh*          fXmlVersion;
59    const XMLCh*          fBaseURI;
60    bool                  fEntityRefNodeCloned;
61   
62    // helper function
63    void        cloneEntityRefTree() const;
64
65    friend class XercesDOMParser;
66
67public:
68    DOMEntityImpl(DOMDocument *doc, const XMLCh *eName);
69    DOMEntityImpl(const DOMEntityImpl &other, bool deep=false);
70    virtual ~DOMEntityImpl();
71
72public:
73    // Declare all of the functions from DOMNode.
74    DOMNODE_FUNCTIONS;
75
76public:
77    virtual const XMLCh *   getPublicId() const;
78    virtual const XMLCh *   getSystemId() const;
79    virtual const XMLCh *   getNotationName() const;
80    virtual void            setNotationName(const XMLCh *arg);
81    virtual void            setPublicId(const XMLCh *arg);
82    virtual void            setSystemId(const XMLCh *arg);
83
84    //DOM Level 2 additions. Non standard functions
85    virtual void                    setEntityRef(DOMEntityReference *);
86    virtual DOMEntityReference* getEntityRef() const;
87
88    //Introduced in DOM Level 3
89    virtual const XMLCh*    getInputEncoding() const;
90    virtual const XMLCh*    getXmlEncoding() const;
91    virtual const XMLCh*    getXmlVersion() const;
92    virtual void            setBaseURI(const XMLCh *arg);
93
94    void                    setInputEncoding(const XMLCh* actualEncoding);
95    void                    setXmlEncoding(const XMLCh* encoding);
96    void                    setXmlVersion(const XMLCh* version);
97private:
98    // -----------------------------------------------------------------------
99    // Unimplemented constructors and operators
100    // -----------------------------------------------------------------------   
101    DOMEntityImpl & operator = (const DOMEntityImpl &);
102};
103
104XERCES_CPP_NAMESPACE_END
105
106#endif
107
Note: See TracBrowser for help on using the repository browser.