libPeConv
A library to load, manipulate, dump PE files.
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
peconv::ExportedFunc Class Reference

#include <exported_func.h>

Public Member Functions

 ExportedFunc ()
 
 ExportedFunc (const ExportedFunc &other)
 
 ExportedFunc (std::string libName, std::string funcName, DWORD funcOrdinal)
 
 ExportedFunc (std::string libName, DWORD funcOrdinal)
 
 ExportedFunc (const std::string &forwarderName)
 
bool operator< (const ExportedFunc &other) const
 
std::string toString () const
 
std::string nameToString () const
 
bool isValid () const
 

Static Public Member Functions

static std::string formatName (std::string name)
 

Public Attributes

std::string libName
 
std::string funcName
 
DWORD funcOrdinal
 
bool isByOrdinal
 

Detailed Description

A class storing the information about the exported function.

Definition at line 53 of file exported_func.h.

Constructor & Destructor Documentation

◆ ExportedFunc() [1/5]

peconv::ExportedFunc::ExportedFunc ( )
inline

Definition at line 67 of file exported_func.h.

◆ ExportedFunc() [2/5]

ExportedFunc::ExportedFunc ( const ExportedFunc other)

Definition at line 107 of file exported_func.cpp.

◆ ExportedFunc() [3/5]

ExportedFunc::ExportedFunc ( std::string  libName,
std::string  funcName,
DWORD  funcOrdinal 
)

Definition at line 92 of file exported_func.cpp.

Here is the call graph for this function:

◆ ExportedFunc() [4/5]

ExportedFunc::ExportedFunc ( std::string  libName,
DWORD  funcOrdinal 
)

Definition at line 100 of file exported_func.cpp.

Here is the call graph for this function:

◆ ExportedFunc() [5/5]

ExportedFunc::ExportedFunc ( const std::string &  forwarderName)

Definition at line 115 of file exported_func.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ formatName()

std::string ExportedFunc::formatName ( std::string  name)
static

Converts the name to the normalized format.

Definition at line 142 of file exported_func.cpp.

◆ isValid()

bool peconv::ExportedFunc::isValid ( ) const
inline

Definition at line 116 of file exported_func.h.

◆ nameToString()

std::string ExportedFunc::nameToString ( ) const

Gets a string representation of the variable. Short info about the function: only function name or ordinal (if the name is missing).

Definition at line 167 of file exported_func.cpp.

Here is the call graph for this function:

◆ operator<()

bool peconv::ExportedFunc::operator< ( const ExportedFunc other) const
inline

Compare two functions with each other. Gives the priority to the named functions: if one of the compared functions is unnamed, the named one is treated as smaller. If both functions are unnamed, the function with the smaller ordinal is treated as smaller. Otherwise, the function with the shorter name is treated as smaller.

Definition at line 80 of file exported_func.h.

◆ toString()

std::string ExportedFunc::toString ( ) const

Gets a string representation of the variable. Full info about the function: library, name, ordinal.

Definition at line 151 of file exported_func.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ funcName

std::string peconv::ExportedFunc::funcName

Definition at line 62 of file exported_func.h.

◆ funcOrdinal

DWORD peconv::ExportedFunc::funcOrdinal

Definition at line 63 of file exported_func.h.

◆ isByOrdinal

bool peconv::ExportedFunc::isByOrdinal

Definition at line 64 of file exported_func.h.

◆ libName

std::string peconv::ExportedFunc::libName

Definition at line 61 of file exported_func.h.


The documentation for this class was generated from the following files: