xml/xmlparser/src/RXMLReader.cpp
changeset 34 c7e9f1c97567
parent 25 417699dc19c9
child 36 172b09aa4eb6
equal deleted inserted replaced
25:417699dc19c9 34:c7e9f1c97567
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <xml/RXMLReader.h>
       
    22 #include "CXMLReader.h"
       
    23 
       
    24 
       
    25 
       
    26 // requirement for E32 DLLs
       
    27 
       
    28 // ============================ MEMBER FUNCTIONS ===============================
       
    29 
       
    30 
       
    31 // -----------------------------------------------------------------------------
       
    32 // RXMLReader::CreateL()
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 EXPORT_C void RXMLReader::CreateL()
       
    36 	{
       
    37 		iImplementation = CXMLReader::NewL();
       
    38 	}
       
    39 
       
    40 
       
    41 
       
    42 // -----------------------------------------------------------------------------
       
    43 // RXMLReader::Destroy()
       
    44 // -----------------------------------------------------------------------------
       
    45 //  
       
    46 EXPORT_C void RXMLReader::Destroy()
       
    47     {
       
    48 		if(iImplementation)
       
    49 		{
       
    50 			delete iImplementation;
       
    51 			iImplementation=NULL;
       
    52 		}
       
    53     }
       
    54 
       
    55 // -----------------------------------------------------------------------------
       
    56 // RXMLReader::Destroy()
       
    57 // -----------------------------------------------------------------------------
       
    58 //  
       
    59 EXPORT_C void RXMLReader::Close()
       
    60     {
       
    61 		Destroy();
       
    62     }
       
    63     
       
    64 // -----------------------------------------------------------------------------
       
    65 // CXMLReader::SetFeature
       
    66 // (other items were commented in a header).
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 EXPORT_C TInt RXMLReader::SetFeature(TXMLFeature aFeature, TBool aStatus)
       
    70 	{
       
    71 		return iImplementation->SetFeature(aFeature, aStatus);
       
    72 	}
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // CXMLReader::GetFeature
       
    76 // (other items were commented in a header).
       
    77 // -----------------------------------------------------------------------------
       
    78 //
       
    79 EXPORT_C TInt RXMLReader::GetFeature(TXMLFeature aFeature, TBool& aStatus)
       
    80 	{
       
    81 		return iImplementation->GetFeature(aFeature, aStatus);
       
    82 	}
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 // CXMLReader::SetContentHandler
       
    86 // (other items were commented in a header).
       
    87 // -----------------------------------------------------------------------------
       
    88 //
       
    89 EXPORT_C TInt RXMLReader::SetContentHandler(MXMLContentHandler* aParserObserver)
       
    90 	{
       
    91 		return iImplementation->SetContentHandler(aParserObserver);
       
    92 	}
       
    93 
       
    94 // -----------------------------------------------------------------------------
       
    95 // CXMLReader::SetContentHandler
       
    96 // Set binary XML content handler
       
    97 // (other items were commented in a header).
       
    98 // -----------------------------------------------------------------------------
       
    99 //
       
   100 EXPORT_C TInt RXMLReader::SetContentHandler(MWBXMLContentHandler* aParserObserver)
       
   101 	{
       
   102 		return iImplementation->SetContentHandler(aParserObserver);
       
   103 	}
       
   104 
       
   105 // -----------------------------------------------------------------------------
       
   106 // CXMLReader::Parse
       
   107 // (other items were commented in a header).
       
   108 // -----------------------------------------------------------------------------
       
   109 //
       
   110 EXPORT_C void RXMLReader::ParseL(RFs &aRFs, const TDesC& aFileToParse)
       
   111    {
       
   112 		iImplementation->ParseL(aRFs, aFileToParse);
       
   113    }
       
   114 
       
   115 // -----------------------------------------------------------------------------
       
   116 // CXMLReader::Parse
       
   117 // (other items were commented in a header).
       
   118 // -----------------------------------------------------------------------------
       
   119 //
       
   120 EXPORT_C void RXMLReader::ParseL(const TDesC8& aBuff) 
       
   121 	{
       
   122 		iImplementation->ParseL(aBuff);
       
   123 	}
       
   124 
       
   125 // -----------------------------------------------------------------------------
       
   126 // CXMLReader::Parse
       
   127 // (other items were commented in a header).
       
   128 // -----------------------------------------------------------------------------
       
   129 //
       
   130 EXPORT_C void RXMLReader::ParseL(RFile& aOpenedFile) 
       
   131 	{
       
   132 		iImplementation->ParseL(aOpenedFile);
       
   133 	}
       
   134 
       
   135 //  End of File