imgtools/imglib/symbolutil/logparser.h
author Ross Qin <ross.qin@nokia.com>
Tue, 30 Nov 2010 13:59:58 +0800
changeset 712 df89378e9223
parent 695 46ca13b54f56
permissions -rw-r--r--
Fix these errors: Some cases of PREQ1230 fail because of buildrom issue rombuild crashs when create ext-romimage readimage crashes on reading wk42 vasco_ui core image vc2008 compiling issues

/*
* Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/


#ifndef ROM_TOOLS_ROFSBUILD_LOGGING_LOGPARSER_H_
#define ROM_TOOLS_ROFSBUILD_LOGGING_LOGPARSER_H_

#include "loggingexception.h"
#include "symbolgenerator.h"
#ifdef _MSC_VER
#define LOGGINGEXCEPTION ...
#else
#define LOGGINGEXCEPTION LoggingException
#endif
/**
 * @class LogParser
 */
class LogParser
{
public:
 
	static LogParser* GetInstance(TImageType aImageType) throw (LOGGINGEXCEPTION);
	virtual void ParseSymbol(const char* LogFilename) throw (LOGGINGEXCEPTION) = 0;
 

	void Cleanup(void);
	virtual ~LogParser() {}
protected:
	LogParser(void);
	static LogParser* Only;
	TImageType iImageType;
private:
	LogParser(const LogParser&);

	LogParser& operator = (const LogParser&);
};

class RofsLogParser : public LogParser
{
public:
	virtual void ParseSymbol(const char* LogFilename) throw (LOGGINGEXCEPTION);
	RofsLogParser(void);
};

class RomLogParser : public LogParser
{
public:
	virtual void ParseSymbol(const char* LogFilename) throw (LOGGINGEXCEPTION);
	RomLogParser(void);
};



#endif  /* defined ROM_TOOLS_ROFSBUILD_LOGGING_LOGPARSER_H_ */