|
1 /* |
|
2 * Copyright (c) 2007-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 the License "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 * ReportWriter class declaration. |
|
16 * @internalComponent |
|
17 * @released |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef REPORTWRITER_H |
|
23 #define REPORTWRITER_H |
|
24 |
|
25 // for mingw complier. |
|
26 #if defined(__MSVCDOTNET__) || defined(__TOOLS2__) |
|
27 #include <iomanip> |
|
28 #else //!__MSVCDOTNET__ |
|
29 #include <iomanip.h> |
|
30 #endif |
|
31 #include <fstream> |
|
32 #include <iostream> |
|
33 #include <sstream> |
|
34 |
|
35 #include "common.h" |
|
36 #include "exceptionreporter.h" |
|
37 |
|
38 /** |
|
39 Note message to explain about unknown dependency in ROM image |
|
40 |
|
41 @internalComponent |
|
42 @released |
|
43 */ |
|
44 const String KNoteMesg(" - Executable is hidden in ROM image, but all the links to this executable are statically resolved."); |
|
45 const String KNote("Note"); |
|
46 |
|
47 /** |
|
48 Report Writer cass (Abstract base class for cmdline and xml derived writer class) |
|
49 |
|
50 @internalComponent |
|
51 @released |
|
52 */ |
|
53 class ReportWriter |
|
54 { |
|
55 public: |
|
56 |
|
57 ReportWriter(void){}; |
|
58 virtual ~ReportWriter(void){}; |
|
59 |
|
60 virtual void StartReport(void)=0; |
|
61 virtual void EndReport(void)=0; |
|
62 virtual void StartImage(const String& aImageName)=0; |
|
63 virtual void EndImage(void)=0; |
|
64 virtual void WriteExeAttribute(ExeAttribute& aOneSetExeAtt)=0; |
|
65 virtual void StartExecutable(const unsigned int aSerNo, const String& aExeName)=0; |
|
66 virtual void EndExecutable(void)=0; |
|
67 virtual void WriteNote(void)=0; |
|
68 virtual const String& ReportType(void)=0; |
|
69 }; |
|
70 |
|
71 #endif // REPORTWRITER_H |