aknlayoutcompiler/inc/LayPerfWriter.h
changeset 0 f58d6ec98e88
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 LAYPERFWRITER_H
       
    20 #define LAYPERFWRITER_H
       
    21 
       
    22 #include "WriterBase.h"
       
    23 
       
    24 /**
       
    25 *  TLayPerfTableWriter
       
    26 *  Writes a layout table in .lay format
       
    27 */
       
    28 class TLayPerfTableWriter
       
    29 	{
       
    30 public:
       
    31 	TLayPerfTableWriter(TLayoutTable& aTable, string& aInterfaceName, int aTableId);
       
    32 	~TLayPerfTableWriter();
       
    33 
       
    34 	void Write(ostream& out);
       
    35 	static void WriteCell(ostream& out, TValues& values);
       
    36 
       
    37 private:
       
    38 	bool IsWindowTable();
       
    39 	void WriteWindowTable(ostream& out);
       
    40 	void WriteWindowLine(ostream& out, TLayoutLine& line);
       
    41 	void BuildGenericLine(TLayoutLine& aLine, const string* aKParams, int aCount, string& aParams, string& aLimits);
       
    42 	bool IsTextTable();
       
    43 	void WriteTextTable(ostream& out);
       
    44 	void WriteTextLine(ostream& out, TLayoutLine& line);
       
    45 
       
    46 private:
       
    47 	TLayoutTable& iTable;
       
    48 	string iInterfaceName;
       
    49 	int iTableId;
       
    50 	};
       
    51 
       
    52 /**
       
    53 *  TLayPerfWriter 
       
    54 *  Writes a layout in .lay format
       
    55 */
       
    56 class TLayPerfWriter : public TLayWriterBase
       
    57 	{
       
    58 public:
       
    59 	TLayPerfWriter(TLayout& aLayout, const std::string& aName);
       
    60 	void Write(const std::string& aLayName);
       
    61 	};
       
    62 
       
    63 #endif // LAYPERFWRITER_H
       
    64 
       
    65 // End of File