Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
2 * Copyright (c) 2006-2006 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: All memory chunk data functions
24 #ifndef XMLENGINE_CHUNKCONTAINER_H_INCLUDED
25 #define XMLENGINE_CHUNKCONTAINER_H_INCLUDED
27 #include "xmlengdatacontainer.h"
31 * Instance of TXmlEngChunkContainer class represents data stored in RChunks in DOM tree
33 * RChunk data is treated in general as text nodes in DOM tree.
34 * Some of the fields in xmlNode structure are reused in order to save memory.
35 * Data is stored in memory referenced to by RChunk.
37 * Sample code for creating chunk container:
39 * RXmlEngDOMImplementation domImpl;
40 * domImpl.OpenL(); ///< opening DOM implementation object
41 * RXmlEngDocument iDoc;
42 * ///< create document element
43 * TXmlEngElement elem = iDoc.CreateDocumentElementL(_L8("doc"));
44 * ///< create RChunk object with chunkName name and size
46 * chunk.CreateGlobal(chunkName, size, maxSize);
47 * CleanupClosePushL(chunk);
48 * ///< create chunk container from Rchunk object with offset to the
49 * ///< binary data in chunk and binary data size in chunk (binarySize)
50 * TXmlEngChunkContainer binData = iDoc.CreateChunkContainerL(
51 * cid,chunk,offset,binarySize);
52 * ///< append chunkcontainer to the dom tree
53 * TXmlEngNode ref = iDoc.DocumentElement().AppendChildL(binData);
54 * ///< closing all opened objects
55 * CleanupStack::PopAndDestroy();//chunk
60 * @lib XmlEngineDOM.lib
63 class TXmlEngChunkContainer : public TXmlEngDataContainer
67 * Get memory chunk reference
70 * @return Memory chunk reference
73 IMPORT_C RChunk& Chunk() const;
76 * Get offset of binary data in memory chunk
79 * @return Offset of binary data in memory chunk
81 IMPORT_C TUint ChunkOffset() const;
89 inline TXmlEngChunkContainer();
95 * @param aInternal node pointer
97 inline TXmlEngChunkContainer(void* aInternal);
102 #include "xmlengchunkcontainer.inl"
104 #endif /* XMLENGINE_CHUNKCONTAINER_H_INCLUDED */