1 | #ifndef DOMProcessingInstruction_HEADER_GUARD_
|
---|
2 | #define DOMProcessingInstruction_HEADER_GUARD_
|
---|
3 |
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Copyright 2001-2002,2004 The Apache Software Foundation.
|
---|
7 | *
|
---|
8 | * Licensed under the Apache License, Version 2.0 (the "License");
|
---|
9 | * you may not use this file except in compliance with the License.
|
---|
10 | * You may obtain a copy of the License at
|
---|
11 | *
|
---|
12 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
13 | *
|
---|
14 | * Unless required by applicable law or agreed to in writing, software
|
---|
15 | * distributed under the License is distributed on an "AS IS" BASIS,
|
---|
16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
17 | * See the License for the specific language governing permissions and
|
---|
18 | * limitations under the License.
|
---|
19 | */
|
---|
20 |
|
---|
21 | /*
|
---|
22 | * $Id: DOMProcessingInstruction.hpp,v 1.8 2004/09/26 15:38:02 gareth Exp $
|
---|
23 | */
|
---|
24 |
|
---|
25 | #include <xercesc/util/XercesDefs.hpp>
|
---|
26 | #include <xercesc/dom/DOMNode.hpp>
|
---|
27 |
|
---|
28 | XERCES_CPP_NAMESPACE_BEGIN
|
---|
29 |
|
---|
30 |
|
---|
31 | /**
|
---|
32 | * The <code>DOMProcessingInstruction</code> interface represents a "processing
|
---|
33 | * instruction", used in XML as a way to keep processor-specific information
|
---|
34 | * in the text of the document.
|
---|
35 | *
|
---|
36 | * @since DOM Level 1
|
---|
37 | */
|
---|
38 | class CDOM_EXPORT DOMProcessingInstruction: public DOMNode {
|
---|
39 | protected:
|
---|
40 | // -----------------------------------------------------------------------
|
---|
41 | // Hidden constructors
|
---|
42 | // -----------------------------------------------------------------------
|
---|
43 | /** @name Hidden constructors */
|
---|
44 | //@{
|
---|
45 | DOMProcessingInstruction() {};
|
---|
46 | //@}
|
---|
47 |
|
---|
48 | private:
|
---|
49 | // -----------------------------------------------------------------------
|
---|
50 | // Unimplemented constructors and operators
|
---|
51 | // -----------------------------------------------------------------------
|
---|
52 | /** @name Unimplemented constructors and operators */
|
---|
53 | //@{
|
---|
54 | DOMProcessingInstruction(const DOMProcessingInstruction &);
|
---|
55 | DOMProcessingInstruction & operator = (const DOMProcessingInstruction &);
|
---|
56 | //@}
|
---|
57 |
|
---|
58 | public:
|
---|
59 | // -----------------------------------------------------------------------
|
---|
60 | // All constructors are hidden, just the destructor is available
|
---|
61 | // -----------------------------------------------------------------------
|
---|
62 | /** @name Destructor */
|
---|
63 | //@{
|
---|
64 | /**
|
---|
65 | * Destructor
|
---|
66 | *
|
---|
67 | */
|
---|
68 | virtual ~DOMProcessingInstruction() {};
|
---|
69 | //@}
|
---|
70 |
|
---|
71 | // -----------------------------------------------------------------------
|
---|
72 | // Virtual DOMProcessingInstruction interface
|
---|
73 | // -----------------------------------------------------------------------
|
---|
74 | /** @name Functions introduced in DOM Level 1 */
|
---|
75 | //@{
|
---|
76 | // -----------------------------------------------------------------------
|
---|
77 | // Getter methods
|
---|
78 | // -----------------------------------------------------------------------
|
---|
79 | /**
|
---|
80 | * The target of this processing instruction.
|
---|
81 | *
|
---|
82 | * XML defines this as being the
|
---|
83 | * first token following the markup that begins the processing instruction.
|
---|
84 | *
|
---|
85 | * @since DOM Level 1
|
---|
86 | */
|
---|
87 | virtual const XMLCh * getTarget() const = 0;
|
---|
88 |
|
---|
89 | /**
|
---|
90 | * The content of this processing instruction.
|
---|
91 | *
|
---|
92 | * This is from the first non
|
---|
93 | * white space character after the target to the character immediately
|
---|
94 | * preceding the <code>?></code>.
|
---|
95 | * @exception DOMException
|
---|
96 | * NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
|
---|
97 | * @since DOM Level 1
|
---|
98 | */
|
---|
99 | virtual const XMLCh * getData() const = 0;
|
---|
100 |
|
---|
101 | // -----------------------------------------------------------------------
|
---|
102 | // Setter methods
|
---|
103 | // -----------------------------------------------------------------------
|
---|
104 | /**
|
---|
105 | * Sets the content of this processing instruction.
|
---|
106 | *
|
---|
107 | * This is from the first non
|
---|
108 | * white space character after the target to the character immediately
|
---|
109 | * preceding the <code>?></code>.
|
---|
110 | * @param data The string containing the processing instruction
|
---|
111 | * @since DOM Level 1
|
---|
112 | */
|
---|
113 | virtual void setData(const XMLCh * data) = 0;
|
---|
114 | //@}
|
---|
115 |
|
---|
116 | };
|
---|
117 |
|
---|
118 | XERCES_CPP_NAMESPACE_END
|
---|
119 |
|
---|
120 | #endif
|
---|
121 |
|
---|