toolsandutils/e32tools/elf2e32/source/pl_dso_handler.h
changeset 0 83f4b4db085c
child 1 d4b442d23379
equal deleted inserted replaced
-1:000000000000 0:83f4b4db085c
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Implementation of the Class DSOHandler for the elf2e32 tool
       
    15 // @internalComponent
       
    16 // @released
       
    17 // 
       
    18 //
       
    19 
       
    20 #if !defined(_PL_DSOHANDLER_H_)
       
    21 #define _PL_DSOHANDLER_H_
       
    22 #include "pl_common.h"
       
    23 #include <list>
       
    24 
       
    25 using std::list;
       
    26 
       
    27 class Symbol;
       
    28 class ElfExecutable;
       
    29 class ElfProducer;
       
    30 class ElfConsumer;
       
    31 class ParameterListInterface;
       
    32 
       
    33 /**
       
    34 This class is for reading the input ELF file. If the input is of type ET_DYN, it
       
    35 initiates writing the dso file.
       
    36 @internalComponent
       
    37 @released
       
    38 
       
    39 */
       
    40 class DSOHandler
       
    41 {
       
    42 
       
    43 	typedef std::list<Symbol*>	SymbolList;
       
    44 
       
    45 public:
       
    46 	DSOHandler(	ParameterListInterface *aParameterListInterface);
       
    47 	~DSOHandler();
       
    48 	PLUINT32 ReadElfFile(char* aElfFile);
       
    49 	void ProcessElfFile();
       
    50 	PLUINT32 WriteElfFile(char* aDsoFullName, char* aDllName, char* aFile, SymbolList& aSymbolList);
       
    51 	int GetElfExportSymbolList(SymbolList& aList);
       
    52 	void GetImageDetails(/*E32ImageInterface aImageInterface*/);
       
    53 	ElfExecutable * ElfExecutableP();
       
    54 
       
    55 private:
       
    56 	/** This member handles reading the ELF exucutable file. */
       
    57 	ElfConsumer* iElfConsumer;
       
    58 	/** This member is responsible for generating the proxy DSO file. */
       
    59 	ElfProducer* iElfProducer;
       
    60 	ParameterListInterface *iParameterListInterface;
       
    61 };
       
    62 
       
    63 
       
    64 
       
    65 
       
    66 #endif // !defined(_PL_DSOHANDLER_H_)