1 | #ifndef DOMProcessingInstruction_HEADER_GUARD_
|
---|
2 | #define DOMProcessingInstruction_HEADER_GUARD_
|
---|
3 |
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * The Apache Software License, Version 1.1
|
---|
7 | *
|
---|
8 | * Copyright (c) 2001-2002 The Apache Software Foundation. All rights
|
---|
9 | * reserved.
|
---|
10 | *
|
---|
11 | * Redistribution and use in source and binary forms, with or without
|
---|
12 | * modification, are permitted provided that the following conditions
|
---|
13 | * are met:
|
---|
14 | *
|
---|
15 | * 1. Redistributions of source code must retain the above copyright
|
---|
16 | * notice, this list of conditions and the following disclaimer.
|
---|
17 | *
|
---|
18 | * 2. Redistributions in binary form must reproduce the above copyright
|
---|
19 | * notice, this list of conditions and the following disclaimer in
|
---|
20 | * the documentation and/or other materials provided with the
|
---|
21 | * distribution.
|
---|
22 | *
|
---|
23 | * 3. The end-user documentation included with the redistribution,
|
---|
24 | * if any, must include the following acknowledgment:
|
---|
25 | * "This product includes software developed by the
|
---|
26 | * Apache Software Foundation (http://www.apache.org/)."
|
---|
27 | * Alternately, this acknowledgment may appear in the software itself,
|
---|
28 | * if and wherever such third-party acknowledgments normally appear.
|
---|
29 | *
|
---|
30 | * 4. The names "Xerces" and "Apache Software Foundation" must
|
---|
31 | * not be used to endorse or promote products derived from this
|
---|
32 | * software without prior written permission. For written
|
---|
33 | * permission, please contact apache\@apache.org.
|
---|
34 | *
|
---|
35 | * 5. Products derived from this software may not be called "Apache",
|
---|
36 | * nor may "Apache" appear in their name, without prior written
|
---|
37 | * permission of the Apache Software Foundation.
|
---|
38 | *
|
---|
39 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
|
---|
40 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
---|
41 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
---|
42 | * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
|
---|
43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
---|
44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
---|
45 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
---|
46 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
---|
47 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
---|
48 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
---|
49 | * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
---|
50 | * SUCH DAMAGE.
|
---|
51 | * ====================================================================
|
---|
52 | *
|
---|
53 | * This software consists of voluntary contributions made by many
|
---|
54 | * individuals on behalf of the Apache Software Foundation, and was
|
---|
55 | * originally based on software copyright (c) 2001, International
|
---|
56 | * Business Machines, Inc., http://www.ibm.com . For more information
|
---|
57 | * on the Apache Software Foundation, please see
|
---|
58 | * <http://www.apache.org/>.
|
---|
59 | */
|
---|
60 |
|
---|
61 | /*
|
---|
62 | * $Id: DOMProcessingInstruction.hpp,v 1.6 2003/03/07 19:59:08 tng Exp $
|
---|
63 | */
|
---|
64 |
|
---|
65 | #include <xercesc/util/XercesDefs.hpp>
|
---|
66 | #include "DOMNode.hpp"
|
---|
67 |
|
---|
68 | XERCES_CPP_NAMESPACE_BEGIN
|
---|
69 |
|
---|
70 |
|
---|
71 | /**
|
---|
72 | * The <code>DOMProcessingInstruction</code> interface represents a "processing
|
---|
73 | * instruction", used in XML as a way to keep processor-specific information
|
---|
74 | * in the text of the document.
|
---|
75 | *
|
---|
76 | * @since DOM Level 1
|
---|
77 | */
|
---|
78 | class CDOM_EXPORT DOMProcessingInstruction: public DOMNode {
|
---|
79 | protected:
|
---|
80 | // -----------------------------------------------------------------------
|
---|
81 | // Hidden constructors
|
---|
82 | // -----------------------------------------------------------------------
|
---|
83 | /** @name Hidden constructors */
|
---|
84 | //@{
|
---|
85 | DOMProcessingInstruction() {};
|
---|
86 | //@}
|
---|
87 |
|
---|
88 | private:
|
---|
89 | // -----------------------------------------------------------------------
|
---|
90 | // Unimplemented constructors and operators
|
---|
91 | // -----------------------------------------------------------------------
|
---|
92 | /** @name Unimplemented constructors and operators */
|
---|
93 | //@{
|
---|
94 | DOMProcessingInstruction(const DOMProcessingInstruction &);
|
---|
95 | DOMProcessingInstruction & operator = (const DOMProcessingInstruction &);
|
---|
96 | //@}
|
---|
97 |
|
---|
98 | public:
|
---|
99 | // -----------------------------------------------------------------------
|
---|
100 | // All constructors are hidden, just the destructor is available
|
---|
101 | // -----------------------------------------------------------------------
|
---|
102 | /** @name Destructor */
|
---|
103 | //@{
|
---|
104 | /**
|
---|
105 | * Destructor
|
---|
106 | *
|
---|
107 | */
|
---|
108 | virtual ~DOMProcessingInstruction() {};
|
---|
109 | //@}
|
---|
110 |
|
---|
111 | // -----------------------------------------------------------------------
|
---|
112 | // Virtual DOMProcessingInstruction interface
|
---|
113 | // -----------------------------------------------------------------------
|
---|
114 | /** @name Functions introduced in DOM Level 1 */
|
---|
115 | //@{
|
---|
116 | // -----------------------------------------------------------------------
|
---|
117 | // Getter methods
|
---|
118 | // -----------------------------------------------------------------------
|
---|
119 | /**
|
---|
120 | * The target of this processing instruction.
|
---|
121 | *
|
---|
122 | * XML defines this as being the
|
---|
123 | * first token following the markup that begins the processing instruction.
|
---|
124 | *
|
---|
125 | * @since DOM Level 1
|
---|
126 | */
|
---|
127 | virtual const XMLCh * getTarget() const = 0;
|
---|
128 |
|
---|
129 | /**
|
---|
130 | * The content of this processing instruction.
|
---|
131 | *
|
---|
132 | * This is from the first non
|
---|
133 | * white space character after the target to the character immediately
|
---|
134 | * preceding the <code>?></code>.
|
---|
135 | * @exception DOMException
|
---|
136 | * NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
|
---|
137 | * @since DOM Level 1
|
---|
138 | */
|
---|
139 | virtual const XMLCh * getData() const = 0;
|
---|
140 |
|
---|
141 | // -----------------------------------------------------------------------
|
---|
142 | // Setter methods
|
---|
143 | // -----------------------------------------------------------------------
|
---|
144 | /**
|
---|
145 | * Sets the content of this processing instruction.
|
---|
146 | *
|
---|
147 | * This is from the first non
|
---|
148 | * white space character after the target to the character immediately
|
---|
149 | * preceding the <code>?></code>.
|
---|
150 | * @param data The string containing the processing instruction
|
---|
151 | * @since DOM Level 1
|
---|
152 | */
|
---|
153 | virtual void setData(const XMLCh * data) = 0;
|
---|
154 | //@}
|
---|
155 |
|
---|
156 | };
|
---|
157 |
|
---|
158 | XERCES_CPP_NAMESPACE_END
|
---|
159 |
|
---|
160 | #endif
|
---|
161 |
|
---|