toolsandutils/e32tools/elf2e32/source/export_type_target.cpp
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 ExexpTarget for the elf2e32 tool
       
    15 // @internalComponent
       
    16 // @released
       
    17 // 
       
    18 //
       
    19 
       
    20 #include "export_type_target.h"
       
    21 
       
    22 /**
       
    23 Constructor for the ExportTypeTarget Class
       
    24 
       
    25 @internalComponent
       
    26 @released
       
    27 */
       
    28 ExportTypeTarget::ExportTypeTarget(ParameterListInterface* aParameterListInterface) : ElfFileSupplied(aParameterListInterface), iDefExports(NULL) {
       
    29 }
       
    30 
       
    31 /**
       
    32 Destructor for the ExportTypeTarget Class
       
    33 
       
    34 @internalComponent
       
    35 @released
       
    36 */
       
    37 ExportTypeTarget::~ExportTypeTarget() {
       
    38 }
       
    39 
       
    40 /**
       
    41 Function to generate the output E32 image. Since this is a targettype which can have
       
    42 export symbols, the output generated can also include DEF File (if any), DSO file and
       
    43 and E32 image.
       
    44  
       
    45 @internalComponent
       
    46 @released
       
    47 */
       
    48 void ExportTypeTarget::GenerateOutput() 
       
    49 {
       
    50 	WriteDefFile();
       
    51 	WriteDSOFile();
       
    52 	WriteE32();
       
    53 }
       
    54 
       
    55 /**
       
    56 Function to check if the provided input is a DLL.
       
    57  
       
    58 @internalComponent
       
    59 @released
       
    60 
       
    61 @result True since Export Type Target is a DLL.
       
    62 */
       
    63 bool ExportTypeTarget::ImageIsDll()
       
    64 {
       
    65 	return true;
       
    66 }