aknlayoutcompiler/inc/Cdl2Lag.h
changeset 0 f58d6ec98e88
child 1 b700e12870ca
equal deleted inserted replaced
-1:000000000000 0:f58d6ec98e88
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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 "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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CDL2LAG_H
       
    20 #define CDL2LAG_H
       
    21 
       
    22 #include <string>
       
    23 #include <vector>
       
    24 #include <iosfwd>
       
    25 #include <cdlcompilertoolkit/cdltkprocess.h>
       
    26 using namespace CdlCompilerToolkit;
       
    27 using namespace std;
       
    28 
       
    29 /**
       
    30 *  CdlToLag
       
    31 *  Generates a LAG file macro API to access a CDL API
       
    32 */
       
    33 class CdlToLag
       
    34 	{
       
    35 public:
       
    36 	static int Process(const vector<string>& args);
       
    37 	static void ShowHelp(ostream& stream);
       
    38 
       
    39 private:
       
    40 	CdlToLag(ofstream& aLag, const string& aLagName);
       
    41 
       
    42 	void Start();
       
    43 	void AddInterface(CCdlTkInterface& aInterface);
       
    44 	void Finish();
       
    45 
       
    46 	void WriteHeader();
       
    47 	void WriteMacro(CCdlTkApi& aApi);
       
    48 	void WriteFooter();
       
    49 	void WriteInclude();
       
    50 
       
    51 private:
       
    52 	ofstream& iLag;
       
    53 	string iLagName;
       
    54 	CCdlTkInterface* iInterface;
       
    55 	};
       
    56 
       
    57 #endif