Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

PeFileT Class Template Reference

#include <PeFile.h>

Inheritance diagram for PeFileT:

Inheritance graph
[legend]
Collaboration diagram for PeFileT:

Collaboration graph
[legend]
List of all members.

Public Member Functions

unsigned int getBits () const
std::string getFileName () const
 Returns the name of the current file.

ImportDirectory< bits > & impDir ()
 Accessor function for the import directory.

const ImportDirectory< bits > & impDir () const
 Accessor function for the import directory.

 PeFileT (const std::string &strFilename)
 Initializes a PeFile with a filename.

 PeFileT ()
 Default constructor which exists only for the sake of allowing to construct files without filenames.

PeHeader32_64 & peHeader ()
 Accessor function for the PE header.

const PeHeader32_64 & peHeader () const
 Accessor function for the PE header.

int readBoundImportDirectory ()
 Reads the bound import directory of the current file from disc.

int readComHeaderDirectory ()
 Reads the COM+ descriptor directory of the current file from disc.

int readDebugDirectory ()
 Reads the Debug directory of the current file.

int readExportDirectory ()
 Reads the export directory of the current file from disc.

int readIatDirectory ()
 Reads the IAT directory of the current file from disc.

int readImportDirectory ()
 Reads the import directory of the current file from disc.

int readMzHeader ()
 Reads the MZ header of the current file from disc.

int readPeHeader ()
 Reads the PE header of the current file from disc.

int readRelocationsDirectory ()
 Reads the relocations directory of the current file from disc.

int readResourceDirectory ()
 Reads the resource directory of the current file from disc.

int readTlsDirectory ()
void setFileName (std::string strFilename)
 Changes the name of the current file.

TlsDirectory< bits > & tlsDir ()
const TlsDirectory< bits > & tlsDir () const

Private Types

typedef PeFile_Traits< bits
>::PeHeader32_64 
PeHeader32_64

Private Attributes

ImportDirectory< bits > m_impdir
 Import directory of the current file.

PeHeader32_64 m_peh
 PE header of the current file.

TlsDirectory< bits > m_tlsdir

Detailed Description

template<int bits>
class PeLib::PeFileT< bits >

This class implements the common structures of PE and PE+ files.


Constructor & Destructor Documentation

PeFileT const std::string &  strFilename  )  [explicit]
 

Initializes a PeFile with a filename.

Parameters:
strFilename Name of the current file.


Member Function Documentation

std::string getFileName  )  const [virtual]
 

Returns the name of the current file.

Returns:
Filename of the current file.

Implements PeFile.

ImportDirectory< bits > & impDir  ) 
 

Accessor function for the import directory.

Returns:
A reference to the file's import directory.

const ImportDirectory< bits > & impDir  )  const
 

Accessor function for the import directory.

Returns:
A reference to the file's import directory.

PeFile_Traits< bits >::PeHeader32_64 & peHeader  ) 
 

Accessor function for the PE header.

Returns:
A reference to the file's PE header.

const PeFile_Traits< bits >::PeHeader32_64 & peHeader  )  const
 

Accessor function for the PE header.

Returns:
A reference to the file's PE header.

void setFileName std::string  strFilename  )  [virtual]
 

Changes the name of the current file.

Parameters:
strFilename New filename.

Implements PeFile.


The documentation for this class was generated from the following file:
Generated on Mon Jan 17 20:50:15 2005 for PeLib by doxygen 1.3.7