xml/xmlparser/src/RXMLReader.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 17:02:56 +0300
branchRCL_3
changeset 32 889504eac4fb
child 37 c828a2f286d1
permissions -rw-r--r--
Revision: 201014 Kit: 201035

/*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  ?Description
*
*/



// INCLUDE FILES
#include <xml/RXMLReader.h>
#include "CXMLReader.h"



// requirement for E32 DLLs

// ============================ MEMBER FUNCTIONS ===============================


// -----------------------------------------------------------------------------
// RXMLReader::CreateL()
// -----------------------------------------------------------------------------
//
EXPORT_C void RXMLReader::CreateL()
	{
		iImplementation = CXMLReader::NewL();
	}



// -----------------------------------------------------------------------------
// RXMLReader::Destroy()
// -----------------------------------------------------------------------------
//  
EXPORT_C void RXMLReader::Destroy()
    {
		if(iImplementation)
		{
			delete iImplementation;
			iImplementation=NULL;
		}
    }

// -----------------------------------------------------------------------------
// RXMLReader::Destroy()
// -----------------------------------------------------------------------------
//  
EXPORT_C void RXMLReader::Close()
    {
		Destroy();
    }
    
// -----------------------------------------------------------------------------
// CXMLReader::SetFeature
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
EXPORT_C TInt RXMLReader::SetFeature(TXMLFeature aFeature, TBool aStatus)
	{
		return iImplementation->SetFeature(aFeature, aStatus);
	}

// -----------------------------------------------------------------------------
// CXMLReader::GetFeature
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
EXPORT_C TInt RXMLReader::GetFeature(TXMLFeature aFeature, TBool& aStatus)
	{
		return iImplementation->GetFeature(aFeature, aStatus);
	}

// -----------------------------------------------------------------------------
// CXMLReader::SetContentHandler
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
EXPORT_C TInt RXMLReader::SetContentHandler(MXMLContentHandler* aParserObserver)
	{
		return iImplementation->SetContentHandler(aParserObserver);
	}

// -----------------------------------------------------------------------------
// CXMLReader::SetContentHandler
// Set binary XML content handler
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
EXPORT_C TInt RXMLReader::SetContentHandler(MWBXMLContentHandler* aParserObserver)
	{
		return iImplementation->SetContentHandler(aParserObserver);
	}

// -----------------------------------------------------------------------------
// CXMLReader::Parse
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
EXPORT_C void RXMLReader::ParseL(RFs &aRFs, const TDesC& aFileToParse)
   {
		iImplementation->ParseL(aRFs, aFileToParse);
   }

// -----------------------------------------------------------------------------
// CXMLReader::Parse
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
EXPORT_C void RXMLReader::ParseL(const TDesC8& aBuff) 
	{
		iImplementation->ParseL(aBuff);
	}

// -----------------------------------------------------------------------------
// CXMLReader::Parse
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
EXPORT_C void RXMLReader::ParseL(RFile& aOpenedFile) 
	{
		iImplementation->ParseL(aOpenedFile);
	}

//  End of File