source: icXML/icXML-devel/src/xercesc/dom/impl/DOMLSOutputImpl.hpp @ 2722

Last change on this file since 2722 was 2722, checked in by cameron, 6 years ago

Original Xerces files with import mods for icxercesc

File size: 2.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: DOMLSOutputImpl.hpp 641193 2008-03-26 08:06:57Z borisk $
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_DOMLSOUTPUTIMPL_HPP)
23#define XERCESC_INCLUDE_GUARD_DOMLSOUTPUTIMPL_HPP
24
25#include <xercesc/dom/DOM.hpp>
26#include <xercesc/dom/DOMLSOutput.hpp>
27
28XERCES_CPP_NAMESPACE_BEGIN
29
30class CDOM_EXPORT DOMLSOutputImpl : public XMemory, public DOMLSOutput
31{
32
33public:
34
35    DOMLSOutputImpl(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
36    ~DOMLSOutputImpl();
37
38    virtual XMLFormatTarget* getByteStream() const;
39    virtual const XMLCh* getEncoding() const;
40    virtual const XMLCh* getSystemId() const;
41
42    virtual void setByteStream(XMLFormatTarget* stream);
43    virtual void setEncoding(const XMLCh* const encodingStr);
44    virtual void setSystemId(const XMLCh* const systemId);
45
46    virtual void release();
47
48private:
49
50    /** unimplemented copy ctor and assignment operator */
51    DOMLSOutputImpl(const DOMLSOutputImpl&);
52    DOMLSOutputImpl & operator = (const DOMLSOutputImpl&);
53
54protected:
55    // -----------------------------------------------------------------------
56    //  Private data members
57    //
58    //  fByteStream
59    //    We don't own it
60    //
61    //  fEncoding
62    //    We own it
63    //
64    //  fSystemId
65    //    We own it
66    //
67    // -----------------------------------------------------------------------
68
69    XMLFormatTarget              *fByteStream;
70    XMLCh                        *fEncoding;
71    XMLCh                        *fSystemId;
72    MemoryManager*               fMemoryManager;
73};
74
75inline XMLFormatTarget* DOMLSOutputImpl::getByteStream() const
76{
77    return fByteStream;
78}
79
80inline const XMLCh* DOMLSOutputImpl::getEncoding() const
81{
82    return fEncoding;
83}
84
85inline const XMLCh* DOMLSOutputImpl::getSystemId() const
86{
87    return fSystemId;
88}
89
90XERCES_CPP_NAMESPACE_END
91
92#endif
Note: See TracBrowser for help on using the repository browser.