Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:27:01

0001 /*
0002  * Licensed to the Apache Software Foundation (ASF) under one or more
0003  * contributor license agreements.  See the NOTICE file distributed with
0004  * this work for additional information regarding copyright ownership.
0005  * The ASF licenses this file to You under the Apache License, Version 2.0
0006  * (the "License"); you may not use this file except in compliance with
0007  * the License.  You may obtain a copy of the License at
0008  * 
0009  *      http://www.apache.org/licenses/LICENSE-2.0
0010  * 
0011  * Unless required by applicable law or agreed to in writing, software
0012  * distributed under the License is distributed on an "AS IS" BASIS,
0013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0014  * See the License for the specific language governing permissions and
0015  * limitations under the License.
0016  */
0017 
0018 /*
0019  * $Id$
0020  */
0021 
0022 #if !defined(XERCESC_INCLUDE_GUARD_DOMLSOUTPUTIMPL_HPP)
0023 #define XERCESC_INCLUDE_GUARD_DOMLSOUTPUTIMPL_HPP
0024 
0025 #include <xercesc/dom/DOM.hpp>
0026 #include <xercesc/dom/DOMLSOutput.hpp>
0027 
0028 XERCES_CPP_NAMESPACE_BEGIN
0029 
0030 class CDOM_EXPORT DOMLSOutputImpl : public XMemory, public DOMLSOutput
0031 {
0032 
0033 public:
0034 
0035     DOMLSOutputImpl(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
0036     ~DOMLSOutputImpl();
0037 
0038     virtual XMLFormatTarget* getByteStream() const;
0039     virtual const XMLCh* getEncoding() const;
0040     virtual const XMLCh* getSystemId() const;
0041 
0042     virtual void setByteStream(XMLFormatTarget* stream);
0043     virtual void setEncoding(const XMLCh* const encodingStr);
0044     virtual void setSystemId(const XMLCh* const systemId);
0045 
0046     virtual void release();
0047 
0048 private:
0049 
0050     /** unimplemented copy ctor and assignment operator */
0051     DOMLSOutputImpl(const DOMLSOutputImpl&);
0052     DOMLSOutputImpl & operator = (const DOMLSOutputImpl&);
0053 
0054 protected:
0055     // -----------------------------------------------------------------------
0056     //  Private data members
0057     //
0058     //  fByteStream
0059     //    We don't own it
0060     //
0061     //  fEncoding
0062     //    We own it
0063     //
0064     //  fSystemId
0065     //    We own it
0066     // 
0067     // -----------------------------------------------------------------------
0068 
0069     XMLFormatTarget              *fByteStream;
0070     XMLCh                        *fEncoding;
0071     XMLCh                        *fSystemId;
0072     MemoryManager*               fMemoryManager;
0073 };
0074 
0075 inline XMLFormatTarget* DOMLSOutputImpl::getByteStream() const
0076 {
0077     return fByteStream;
0078 }
0079 
0080 inline const XMLCh* DOMLSOutputImpl::getEncoding() const
0081 {
0082     return fEncoding;
0083 }
0084 
0085 inline const XMLCh* DOMLSOutputImpl::getSystemId() const
0086 {
0087     return fSystemId;
0088 }
0089 
0090 XERCES_CPP_NAMESPACE_END
0091 
0092 #endif