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 binary data functions
24 #ifndef XMLENGINE_BINARYCONTAINER_H_INCLUDED
25 #define XMLENGINE_BINARYCONTAINER_H_INCLUDED
27 #include "xmlengdatacontainer.h"
30 * Instance of TXmlEngBinaryContainer class represents binary data in
33 * Binary 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 process's heap memory.
37 * Sample code for creating binary 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 binary container from buffer (str1) and CID equals cid
45 * TXmlEngBinaryContainer binData=iDoc.CreateBinaryContainerL(cid,*str1);
46 * elem.AppendChildL(binData); ///< append container to the dom tree
47 * iDoc.Close(); ///< closing all opened objects
51 * @lib XmlEngineDOM.lib
54 class TXmlEngBinaryContainer : public TXmlEngDataContainer
59 * Get content of the container.
62 * @return TPtrC8 with container content
65 IMPORT_C TPtrC8 Contents() const;
68 * Sets contents of binary container
71 * @param aNewContents The actual value to store
73 IMPORT_C void SetContentsL( const TDesC8& aNewContents );
76 * Appends contents to binary container
79 * @param aData Content to be appended to current content
81 EXPORT_C void AppendContentsL( const TDesC8& aData );
88 inline TXmlEngBinaryContainer();
96 * @param aInternal node pointer
98 inline TXmlEngBinaryContainer(void* aInternal);
101 #include "xmlengbinarycontainer.inl"
103 #endif /* XMLENGINE_BINARYCONTAINER_H_INCLUDED */