epoc32/include/xml/dom/xmlengdataserializer.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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 */