xmlengserializationoptions.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : xmlengserializationoptions.h
00004 *  Part of     : XmlEngine / DOM XPath C++ Wrapper
00005 *  Interface   : Domain, XML Engine DOM API
00006 *  Description : Serialization options functions
00007 *  Version     : %version: 2 % 
00008 *
00009 *  Copyright © 2004-2006 Nokia.  All rights reserved.
00010 *  This material, including documentation and any related computer
00011 *  programs, is protected by copyright controlled by Nokia.  All
00012 *  rights are reserved.  Copying, including reproducing, storing,
00013 *  adapting or translating, any or all of this material requires the
00014 *  prior written consent of Nokia.  This material also contains
00015 *  confidential information which may not be disclosed to others
00016 *  without the prior written consent of Nokia.
00017 * ============================================================================
00018 */
00019 
00020 
00021 #ifndef XMLENGINE_SERIALIZATIONOPTIONS_H_INCLUDED
00022 #define XMLENGINE_SERIALIZATIONOPTIONS_H_INCLUDED
00023 
00024 #include <e32base.h>
00025 
00026 // FORWARD DECLARATION
00027 class MXmlEngOutputStream;
00028 class MXmlEngDataSerializer;
00029 class MXmlEngNodeFilter;
00030 
00037 class TXmlEngSerializationOptions 
00038         {
00039 public:
00041     static const TUint KOptionIndent                 = 0x01;
00043         static const TUint KOptionOmitXMLDeclaration     = 0x02;
00045         static const TUint KOptionStandalone             = 0x04;
00047         static const TUint KOptionEncoding               = 0x08;
00049         static const TUint KOptionIncludeNsPrefixes      = 0x10;
00051         static const TUint KOptionCDATASectionElements   = 0x20;
00053         static const TUint KOptionDecodeBinaryContainers                 = 0x40;        
00054     
00062     IMPORT_C TXmlEngSerializationOptions( TUint aOptionFlags = 
00063                                                                    (TXmlEngSerializationOptions::KOptionIndent | 
00064                                                                         TXmlEngSerializationOptions::KOptionStandalone |
00065                                                                         TXmlEngSerializationOptions::KOptionEncoding), 
00066                                     const TDesC8& aEncoding = KNullDesC8);
00067 
00074     IMPORT_C void SetNodeFilter(MXmlEngNodeFilter* aFilter);  
00075 
00076 public:
00078     TUint iOptions;
00080     TPtrC8 iEncoding;
00082     MXmlEngNodeFilter* iNodeFilter;
00084     MXmlEngDataSerializer* iDataSerializer;
00085         };
00086 
00087 
00088 
00089 #endif /* XMLENGINE_SERIALIZATIONOPTIONS_H_INCLUDED */

Copyright © Nokia Corporation 2001-2007
Back to top