File indexing completed on 2025-01-30 10:27:01
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #if !defined(XERCESC_INCLUDE_GUARD_DOMCHARACTERDATAIMPL_HPP)
0023 #define XERCESC_INCLUDE_GUARD_DOMCHARACTERDATAIMPL_HPP
0024
0025
0026
0027
0028
0029
0030
0031
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
0046
0047
0048
0049 class CDOM_EXPORT DOMCharacterDataImpl
0050 {
0051 public:
0052 DOMBuffer* fDataBuf;
0053
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
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