imgtools/imglib/symbolutil/logparser.h
changeset 700 c22eff170fac
parent 695 46ca13b54f56
child 712 df89378e9223
equal deleted inserted replaced
699:9ca650050cf0 700:c22eff170fac
       
     1 /*
       
     2 * Copyright (c) 1995-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 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ROM_TOOLS_ROFSBUILD_LOGGING_LOGPARSER_H_
       
    20 #define ROM_TOOLS_ROFSBUILD_LOGGING_LOGPARSER_H_
       
    21 
       
    22 #include "loggingexception.h"
       
    23 #include "symbolgenerator.h"
       
    24 
       
    25 /**
       
    26  * @class LogParser
       
    27  */
       
    28 class LogParser
       
    29 {
       
    30 public:
       
    31 	static LogParser* GetInstance(TImageType aImageType) throw (LoggingException);
       
    32 
       
    33 	virtual void ParseSymbol(const char* LogFilename) throw (LoggingException) = 0;
       
    34 
       
    35 	void Cleanup(void);
       
    36 	virtual ~LogParser() {}
       
    37 protected:
       
    38 	LogParser(void);
       
    39 	static LogParser* Only;
       
    40 	TImageType iImageType;
       
    41 private:
       
    42 	LogParser(const LogParser&);
       
    43 
       
    44 	LogParser& operator = (const LogParser&);
       
    45 };
       
    46 
       
    47 class RofsLogParser : public LogParser
       
    48 {
       
    49 public:
       
    50 	virtual void ParseSymbol(const char* LogFilename) throw (LoggingException);
       
    51 	RofsLogParser(void);
       
    52 };
       
    53 
       
    54 class RomLogParser : public LogParser
       
    55 {
       
    56 public:
       
    57 	virtual void ParseSymbol(const char* LogFilename) throw (LoggingException);
       
    58 	RomLogParser(void);
       
    59 };
       
    60 
       
    61 
       
    62 
       
    63 #endif  /* defined ROM_TOOLS_ROFSBUILD_LOGGING_LOGPARSER_H_ */