Xerces-C++ 3.3.0
DOMLSOutput.hpp
Go to the documentation of this file.
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$
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_DOMLSOUTPUT_HPP)
23#define XERCESC_INCLUDE_GUARD_DOMLSOUTPUT_HPP
24
26
28
29
30class XMLFormatTarget;
31
32
40{
41protected:
42 // -----------------------------------------------------------------------
43 // Hidden constructors
44 // -----------------------------------------------------------------------
49
50private:
51 // -----------------------------------------------------------------------
52 // Unimplemented constructors and operators
53 // -----------------------------------------------------------------------
56 DOMLSOutput(const DOMLSOutput &);
57 DOMLSOutput & operator = (const DOMLSOutput &);
59
60public:
61 // -----------------------------------------------------------------------
62 // All constructors are hidden, just the destructor is available
63 // -----------------------------------------------------------------------
70 virtual ~DOMLSOutput() {};
72
73 // -----------------------------------------------------------------------
74 // Virtual DOMLSOutput interface
75 // -----------------------------------------------------------------------
78 // -----------------------------------------------------------------------
79 // Getter methods
80 // -----------------------------------------------------------------------
86 virtual XMLFormatTarget* getByteStream() const = 0;
87
98 virtual const XMLCh* getEncoding() const = 0;
99
109 virtual const XMLCh* getSystemId() const = 0;
110
111 // -----------------------------------------------------------------------
112 // Setter methods
113 // -----------------------------------------------------------------------
119 virtual void setByteStream(XMLFormatTarget* stream) = 0;
120
133 virtual void setEncoding(const XMLCh* const encodingStr) = 0;
134
148 virtual void setSystemId(const XMLCh* const systemId) = 0;
150
151 // -----------------------------------------------------------------------
152 // Non-standard Extension
153 // -----------------------------------------------------------------------
162 virtual void release() = 0;
164};
165
166
168
169#endif
#define CDOM_EXPORT
Definition XercesDefs.hpp:166
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
This interface represents an output destination for data.
Definition DOMLSOutput.hpp:40
virtual const XMLCh * getEncoding() const =0
An input source can be set to force the parser to assume a particular encoding for the data that inpu...
virtual ~DOMLSOutput()
Destructor.
Definition DOMLSOutput.hpp:70
DOMLSOutput()
Definition DOMLSOutput.hpp:47
virtual const XMLCh * getSystemId() const =0
Get the system identifier for this input source.
virtual void setSystemId(const XMLCh *const systemId)=0
Set the system identifier for this input source.
virtual void setEncoding(const XMLCh *const encodingStr)=0
Set the encoding which will be required for use with the XML text read via a stream opened by this in...
virtual void release()=0
Called to indicate that this DOMLSOutput is no longer in use and that the implementation may relinqui...
virtual void setByteStream(XMLFormatTarget *stream)=0
Sets the byte stream for this input source.
virtual XMLFormatTarget * getByteStream() const =0
Returns the byte stream for this input source.
Definition XMLFormatter.hpp:443