imgtools/imgcheck/libimgutils/inc/dirreader.h
changeset 0 044383f39525
child 590 360bd6b35136
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 /*
       
     2 * Copyright (c) 2008-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 * Class to read the directory
       
    16 * @internalComponent
       
    17 * @released
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef DIRREADER_H
       
    23 #define DIRREADER_H
       
    24 
       
    25 #include "imagereader.h"
       
    26 
       
    27 const String KParentDir("..");
       
    28 const String KChildDir(".");
       
    29 
       
    30 /**
       
    31 Class Directory reader
       
    32 
       
    33 @internalComponent
       
    34 @released
       
    35 */
       
    36 class DirReader : public ImageReader
       
    37 {
       
    38 private:
       
    39 	ExeVsE32ImageMap iExeVsE32ImageMap;
       
    40 
       
    41 public:
       
    42 	DirReader(char* aDirName);
       
    43 	~DirReader(void);
       
    44 	void ReadImage(void);
       
    45 	void ProcessImage(void);
       
    46 	void PrepareExeVsIdMap(void);
       
    47 	const ExeVsIdDataMap& GetExeVsIdMap() const;
       
    48 	ExeNamesVsDepListMap& GatherDependencies(void);
       
    49 	void PrepareExeDependencyList(E32Image* aE32Image, StringList& aExecutableList);
       
    50 	static EImageType EntryType(char* aStr);
       
    51 
       
    52 private:	
       
    53 	void ReadDir(String aPath);
       
    54 	bool IsExecutable(String aName);
       
    55 };
       
    56  
       
    57 #endif //DIRREADER_H