aknlayoutcompiler/inc/Cdl2Lag.h
author William Roberts <williamr@symbian.org>
Sun, 14 Mar 2010 13:13:44 +0000
branchCompilerCompatibility
changeset 13 a19656173f66
parent 1 b700e12870ca
permissions -rw-r--r--
Automatic merge from PDK_3.0.h

/*
* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "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:  
*
*/


#ifndef CDL2LAG_H
#define CDL2LAG_H

#include <string>
#include <vector>
#include <iosfwd>
#include <CdlCompilerToolkit/CdlTkProcess.h>
using namespace CdlCompilerToolkit;
using namespace std;

/**
*  CdlToLag
*  Generates a LAG file macro API to access a CDL API
*/
class CdlToLag
	{
public:
	static int Process(const vector<string>& args);
	static void ShowHelp(ostream& stream);

private:
	CdlToLag(ofstream& aLag, const string& aLagName);

	void Start();
	void AddInterface(CCdlTkInterface& aInterface);
	void Finish();

	void WriteHeader();
	void WriteMacro(CCdlTkApi& aApi);
	void WriteFooter();
	void WriteInclude();

private:
	ofstream& iLag;
	string iLagName;
	CCdlTkInterface* iInterface;
	};

#endif