aknlayoutcompiler/inc/LayCdlCheck.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 LAYCDLCHECK_H
       
    20 #define LAYCDLCHECK_H
       
    21 
       
    22 #include <string>
       
    23 #include <vector>
       
    24 #include <iosfwd>
       
    25 #include "Layout.h"
       
    26 using namespace std;
       
    27 
       
    28 #include <cdlcompilertoolkit/cdltkinterface.h>
       
    29 #include <cdlcompilertoolkit/cdltkinstance.h>
       
    30 #include <cdlcompilertoolkit/cdltkprocess.h>
       
    31 using namespace CdlCompilerToolkit;
       
    32 
       
    33 /**
       
    34 *  LayCdlCheck
       
    35 *  Check the interface which could be use with a layout against one specified in a CDL file
       
    36 */
       
    37 class LayCdlCheck
       
    38 	{
       
    39 public:
       
    40 	static int Process(const vector<string>& args);
       
    41 	static void ShowHelp(ostream& stream);
       
    42 
       
    43 	LayCdlCheck(TLayout& aLayout, CCdlTkInterface& aInterface, CCdlTkInterface& aExcluded, const string& aOpt);
       
    44 	~LayCdlCheck();
       
    45 	void Process();
       
    46 
       
    47 	void Compare(vector<string>& aGood, vector<string>& aOnlyLay, vector<string>& aOnlyCdl, vector<string>& aParamMismatch);
       
    48 	void Report(const string& aTitle, vector<string>& aApi);
       
    49 	bool HasOpt(char c);
       
    50 
       
    51 private:
       
    52 	TLayout& iLayout;
       
    53 	CCdlTkInterface& iInterface;
       
    54 	CCdlTkInterface& iExcluded;
       
    55 	CCdlTkInterface* iLayoutInterface;	// owned
       
    56 	string iOpt;
       
    57 	};
       
    58 
       
    59 #endif