xml/xmldomandxpath/inc/xmlenginedom/xmlengdataserializer.h
changeset 0 e35f40988205
equal deleted inserted replaced
-1:000000000000 0:e35f40988205
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Interface class describing class that may be used as
       
    15 // serializer for binary data
       
    16 //
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @publishedAll
       
    23  @released
       
    24 */
       
    25 #ifndef XMLENGMDATASERIALIZER_H
       
    26 #define XMLENGMDATASERIALIZER_H
       
    27 
       
    28 #include <xml/dom/xmlengnode.h>
       
    29 
       
    30 /**
       
    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
       
    33 applications.
       
    34 @see TXmlEngSerializationOptions
       
    35 */
       
    36 class MXmlEngDataSerializer
       
    37     {
       
    38 public:
       
    39     /** 
       
    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
       
    45     */
       
    46     virtual TPtrC8 SerializeDataL(TXmlEngNode aNode) = 0;
       
    47     };
       
    48 
       
    49 
       
    50 #endif /* XMLENGMDATASERIALIZER_H */