imgtools/romtools/rofsbuild/r_romnode.h
changeset 694 c3fbb20e86f0
parent 691 9eeecb73a5d4
child 698 e3ee96a3961c
equal deleted inserted replaced
692:1dfff72f0961 694:c3fbb20e86f0
    18 
    18 
    19 #ifndef __R_ROMNODE_H__
    19 #ifndef __R_ROMNODE_H__
    20 #define __R_ROMNODE_H__
    20 #define __R_ROMNODE_H__
    21 
    21 
    22 #include <fstream>
    22 #include <fstream>
    23 #include <vector>
       
    24 #include <string>
       
    25 #include <e32std.h>
    23 #include <e32std.h>
    26 #include "rofs.h"
    24 #include "rofs.h"
    27 #include "e32image.h"
    25 #include "e32image.h"
    28 #include "h_utl.h"
    26 #include "h_utl.h"
    29 
    27 
   123 	static void displayFlatList();
   121 	static void displayFlatList();
   124 	TInt FullNameLength(TBool aIgnoreHiddenAttrib = EFalse) const;
   122 	TInt FullNameLength(TBool aIgnoreHiddenAttrib = EFalse) const;
   125 	TInt GetFullName(char* aBuf, TBool aIgnoreHiddenAttrib = EFalse) const;
   123 	TInt GetFullName(char* aBuf, TBool aIgnoreHiddenAttrib = EFalse) const;
   126 	static void InitializeCount();
   124 	static void InitializeCount();
   127 	// Accessor Function.
   125 	// Accessor Function.
   128    	inline TRomNode* GetParent() const { return iParent; }
   126     inline TRomNode* GetParent() const { return iParent; }
   129 	void FlushLogMessages();
       
   130 
   127 
   131 private:
   128 private:
   132 	void Remove(TRomNode* aChild);
   129 	void Remove(TRomNode* aChild);
   133 	void Add(TRomNode* aChild);
   130 	void Add(TRomNode* aChild);
   134 	void Clone(TRomNode* aOriginal);
   131 	void Clone(TRomNode* aOriginal);
   200 	TInt PlaceFile( TUint8* &aDest, TUint aMaxSize, CBytePair *aBPE );
   197 	TInt PlaceFile( TUint8* &aDest, TUint aMaxSize, CBytePair *aBPE );
   201 
   198 
   202 	inline TInt RealFileSize() const { return iRealFileSize; };
   199 	inline TInt RealFileSize() const { return iRealFileSize; };
   203 	inline void SetRealFileSize(TInt aFileSize) { iRealFileSize=aFileSize;};
   200 	inline void SetRealFileSize(TInt aFileSize) { iRealFileSize=aFileSize;};
   204 	void DisplaySize(TPrintType aWhere);
   201 	void DisplaySize(TPrintType aWhere);
       
   202 	char* GetSystemFullName();
   205 	
   203 	
   206 private:
   204 private:
   207 	TRomBuilderEntry();
   205 	TRomBuilderEntry();
   208 	TRomBuilderEntry(const TRomBuilderEntry&);
   206 	TRomBuilderEntry(const TRomBuilderEntry&);
   209 	const TRomBuilderEntry& operator==(const TRomBuilderEntry &);
   207 	const TRomBuilderEntry& operator==(const TRomBuilderEntry &);
   210 	DllDataEntry* iFirstDllDataEntry;
   208 	DllDataEntry* iFirstDllDataEntry;
   211 
   209 
   212 public:
   210 public:
   213 	char *iName;
   211 	char *iName;
   214 	char *iFileName;
   212 	char *iFileName;
   215 	std::vector<std::string> iLogMessages;
       
   216 
   213 
   217 	TRomBuilderEntry* iNext;
   214 	TRomBuilderEntry* iNext;
   218 	TRomBuilderEntry* iNextInArea;
   215 	TRomBuilderEntry* iNextInArea;
   219 	TBool iExecutable;
   216 	TBool iExecutable;
   220 	TBool iFileOffset; // offset of the file in ROM
   217 	TBool iFileOffset; // offset of the file in ROM