imgtools/imgcheck/inc/reporter.h
changeset 0 044383f39525
child 590 360bd6b35136
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     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 * Reporter class declaration.
       
    16 * @internalComponent
       
    17 * @released
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef REPORTER_H
       
    23 #define REPORTER_H
       
    24 
       
    25 #include "common.h"
       
    26 #include "exceptionreporter.h"
       
    27 #include "reportwriter.h"
       
    28 #include "cmdlinewriter.h"
       
    29 #include "xmlwriter.h"
       
    30 #include <vector>
       
    31 
       
    32 typedef std::list<ExeAttribute*> ExeAttList;
       
    33 
       
    34 struct ExeContainer
       
    35 {
       
    36 	String iExeName;
       
    37 	IdData* iIdData;
       
    38 	StringList iDepList;
       
    39 	ExeAttList iExeAttList;
       
    40 };
       
    41 
       
    42 typedef std::map<std::string, ExeContainer> ExeVsMetaData;
       
    43 typedef std::map<std::string, ExeVsMetaData> ImgVsExeStatus;
       
    44 
       
    45 /** 
       
    46 Base class for all type of report generation.
       
    47 
       
    48 @internalComponent
       
    49 @released
       
    50 */
       
    51 class Reporter
       
    52 {
       
    53 
       
    54 public:
       
    55 	~Reporter();
       
    56 	void CreateReport(const WriterPtrList& aWriterList);
       
    57 	static void DeleteInstance(void);
       
    58 	ImgVsExeStatus& GetContainerReference(void);
       
    59 	static Reporter* Instance(unsigned int aCmdOptions);
       
    60 
       
    61 protected:
       
    62 	// Container required for report object storing.
       
    63 	WriterPtrList iReportWriterPtrList;
       
    64 	//Integrated container
       
    65 	ImgVsExeStatus iImgVsExeStatus;
       
    66 private:
       
    67 	static Reporter* iInstance;
       
    68 	Reporter(unsigned int aCmdOptions);
       
    69 	bool IsAttributeAvailable(void);
       
    70 	unsigned int iInputOptions;
       
    71 };
       
    72 
       
    73 #endif // REPORTER_H