1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Interface class describing class that may be used as
15 // serializer for binary data
25 #ifndef XMLENGMDATASERIALIZER_H
26 #define XMLENGMDATASERIALIZER_H
28 #include <xml/dom/xmlengnode.h>
31 This interface is used to serialize binary data stored in a node, external
32 memory chunk (RChunk) or file. This interface may be implemented by client
34 @see TXmlEngSerializationOptions
36 class MXmlEngDataSerializer
40 Serializes the node. The implementor of this class must allocate and own
41 the memory returned by this method until serialization is complete.
42 @param aNode A node to serialize
43 @return The serialized node
44 @leave - One of the system-wide error codes
46 virtual TPtrC8 SerializeDataL(TXmlEngNode aNode) = 0;
50 #endif /* XMLENGMDATASERIALIZER_H */