xml/xmldomandxpath/inc/xmlenginedom/xmlengdatacontainer.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 // All binary data functions
       
    15 //
       
    16 
       
    17 
       
    18 
       
    19 /**
       
    20  @file
       
    21  @publishedAll
       
    22  @released
       
    23 */
       
    24 #ifndef XMLENGDATACONTAINER_H
       
    25 #define XMLENGDATACONTAINER_H
       
    26 
       
    27 #include <xml/dom/xmlengnode.h>
       
    28 
       
    29 /**
       
    30 This class represents different types of binary data in DOM tree.
       
    31 
       
    32 It can be custom-serialized using the MXmlEngDataSerializer interface which can 
       
    33 be set in the TXmlEngSerializationOptions used for saving the tree.
       
    34 */
       
    35 class TXmlEngDataContainer : public TXmlEngNode
       
    36 {
       
    37 public:
       
    38 
       
    39     /** Get CID of data container.
       
    40     @return Cid of data container
       
    41     */
       
    42     IMPORT_C TPtrC8 Cid() const;
       
    43         
       
    44     /** Get data size in bytes
       
    45     @return Number of bytes occupied by data
       
    46     */
       
    47     IMPORT_C TUint Size() const;
       
    48 
       
    49 protected:
       
    50     /** Default constructor */
       
    51 	inline TXmlEngDataContainer(); 
       
    52 
       
    53     /**
       
    54     Constructor
       
    55     @param aInternal node pointer
       
    56     */
       
    57 	inline TXmlEngDataContainer(void* aInternal);
       
    58 };
       
    59  
       
    60 #include <xml/dom/xmlengdatacontainer.inl>
       
    61 
       
    62 #endif /* XMLENGDATACONTAINER_H */
       
    63