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_DOMCHARACTERDATAIMPL_HPP)
0023 #define XERCESC_INCLUDE_GUARD_DOMCHARACTERDATAIMPL_HPP
0024 
0025 //
0026 //  This file is part of the internal implementation of the C++ XML DOM.
0027 //  It should NOT be included or used directly by application programs.
0028 //
0029 //  Applications should include the file <xercesc/dom/DOM.hpp> for the entire
0030 //  DOM API, or xercesc/dom/DOM*.hpp for individual DOM classes, where the class
0031 //  name is substituded for the *.
0032 //
0033 
0034 #include <xercesc/util/XercesDefs.hpp>
0035 #include <xercesc/util/XMLString.hpp>
0036 
0037 XERCES_CPP_NAMESPACE_BEGIN
0038 
0039 
0040 class DOMNode;
0041 class DOMDocument;
0042 class DOMDocumentImpl;
0043 class DOMBuffer;
0044 
0045 // Instances of DOMCharacterDataImpl appear as members of node types
0046 //   that implement the DOMCharacterData interfaces.
0047 //   Operations in those classes are delegated to this class.
0048 //
0049 class CDOM_EXPORT DOMCharacterDataImpl
0050 {
0051 public:
0052     DOMBuffer* fDataBuf;
0053     // for the buffer bid
0054     DOMDocumentImpl* fDoc;
0055 
0056 public:
0057                    DOMCharacterDataImpl(DOMDocument *doc, const XMLCh *dat);
0058                    DOMCharacterDataImpl(DOMDocument *doc, const XMLCh* data, XMLSize_t n);
0059                    DOMCharacterDataImpl(const DOMCharacterDataImpl &other);
0060                    ~DOMCharacterDataImpl();
0061     const          XMLCh * getNodeValue() const;
0062     void           setNodeValue(const XMLCh * value);
0063     void           appendData(const DOMNode *node, const  XMLCh *data);
0064     void           appendData(const DOMNode *node, const  XMLCh *data, XMLSize_t n);
0065     void           appendDataFast(const DOMNode *node, const  XMLCh *data, XMLSize_t n);
0066     void           deleteData(const DOMNode *node, XMLSize_t offset, XMLSize_t count);
0067     const XMLCh*   getData() const;
0068     XMLSize_t      getLength() const;
0069     void           insertData(const DOMNode *node, XMLSize_t offset, const XMLCh * data);
0070     void           replaceData(const DOMNode *node, XMLSize_t offset, XMLSize_t count, const XMLCh * data);
0071     void           setData(const DOMNode *node, const XMLCh * arg);
0072     void           setNodeValue(const DOMNode *node, const XMLCh *value);
0073 
0074 
0075     const XMLCh*   substringData(const DOMNode *node, XMLSize_t offset, XMLSize_t count) const;
0076     void           releaseBuffer();
0077 
0078 private:
0079     // -----------------------------------------------------------------------
0080     // Unimplemented constructors and operators
0081     // -----------------------------------------------------------------------
0082     DOMCharacterDataImpl & operator = (const DOMCharacterDataImpl &);
0083 };
0084 
0085 #define GetDOMCharacterDataImplMemoryManager GET_DIRECT_MM(fDoc)
0086 
0087 XERCES_CPP_NAMESPACE_END
0088 
0089 
0090 #endif