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. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CATPARSETRACEFILE_H__ |
|
20 #define __CATPARSETRACEFILE_H__ |
|
21 |
|
22 #include "../inc/ATCommonDefines.h" |
|
23 #include "../inc/CATDataSaver.h" |
|
24 #include "../inc/CATBase.h" |
|
25 #include "../inc/catallocs.h" |
|
26 |
|
27 /** |
|
28 * Class that parses trace data to data file. |
|
29 */ |
|
30 class CATParseTraceFile : public CATBase |
|
31 { |
|
32 public: |
|
33 CATParseTraceFile(); |
|
34 |
|
35 /** |
|
36 * Main function to start parse. |
|
37 * |
|
38 * @param pFileName A trace file name. |
|
39 * @param pOutputFileName Pointer to output file name. |
|
40 */ |
|
41 bool StartParse( const char* pFileName, const char* pOutputFileName ); |
|
42 |
|
43 CATDataSaver* GetDataSaver(void); |
|
44 |
|
45 #ifndef MODULE_TEST |
|
46 private: |
|
47 #endif |
|
48 CATDataSaver m_DataSaver; |
|
49 }; |
|
50 |
|
51 class CSubTestData : public CATAllocs |
|
52 { |
|
53 public: |
|
54 bool bRunning; |
|
55 vector<string> vData; |
|
56 string sSubTestName; |
|
57 string sStartTime; |
|
58 string sEndTime; |
|
59 string sSubTestStartHandleCount; |
|
60 string sSubTestEndHandleCount; |
|
61 }; |
|
62 |
|
63 class CProcessData : public CATAllocs |
|
64 { |
|
65 public: |
|
66 bool bProcessOnGoing; |
|
67 int iProcessID; |
|
68 vector<string> vData; |
|
69 vector<string> vHandleLeaks; |
|
70 vector<CSubTestData> vSubTests; |
|
71 }; |
|
72 |
|
73 #endif |
|