perfsrv/analyzetool/commandlineengine/inc/CATParseTraceFile.h
changeset 51 98307c651589
equal deleted inserted replaced
42:0ff24a8f6ca2 51:98307c651589
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Definitions for class CATParseTrace, CProcessData and
       
    15 *               CSubTestData.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __CATPARSETRACEFILE_H__
       
    21 #define __CATPARSETRACEFILE_H__
       
    22 
       
    23 #include "../inc/ATCommonDefines.h"
       
    24 #include "../inc/CATDataSaver.h"
       
    25 #include "../inc/CATBase.h"
       
    26 #include "../inc/catallocs.h"
       
    27 
       
    28 /**
       
    29 * Parses raw trace data to AnalyzeTool specific data file.
       
    30 */
       
    31 class CATParseTraceFile : public CATBase
       
    32 {
       
    33 public:
       
    34 	/**
       
    35 	* Constructor
       
    36 	*/
       
    37 	CATParseTraceFile();
       
    38 
       
    39 	/**
       
    40 	* Main function to start parse.
       
    41 	*
       
    42 	* @param pFileName A trace file name
       
    43 	* @param pOutputFileName Pointer to output file name
       
    44 	*/
       
    45 	bool StartParse( const char* pFileName, const char* pOutputFileName, const char* pCleanedTraceFile = NULL );
       
    46 
       
    47 	/**
       
    48 	* Get data saver
       
    49 	* @return CATDataSaver*
       
    50 	*/
       
    51 	CATDataSaver* GetDataSaver(void);
       
    52 	
       
    53 	/**
       
    54 	* Get time from timestamp in microseconds as string
       
    55 	* @param iTimeStamp Timestamp for current message
       
    56 	* @param iTimeSpan Timespan for current process
       
    57 	* @return string Acquired time in microseconds(as string)
       
    58 	*/
       
    59 	static string GetTimeFromTimeStamp( unsigned __int64 iTimeStamp, unsigned __int64 iTimeSpan );
       
    60 
       
    61 #ifndef MODULE_TEST
       
    62 private:
       
    63 #endif
       
    64 	CATDataSaver m_DataSaver; /** Data saver */
       
    65 };
       
    66 
       
    67 #endif