retdec
Public Member Functions | Private Attributes | List of all members
retdec::fileformat::PeImport Class Reference

#include <pe_import.h>

Inheritance diagram for retdec::fileformat::PeImport:
Inheritance graph
[legend]
Collaboration diagram for retdec::fileformat::PeImport:
Collaboration graph
[legend]

Public Member Functions

 PeImport (std::uint32_t flags)
 
Getters
bool isDelayed () const
 
Setters
void setDelayed (bool importDelayed)
 
Other methods
virtual bool isUsedForImphash () const override
 
- Public Member Functions inherited from retdec::fileformat::Import
virtual ~Import ()=default
 
std::string getName () const
 
unsigned long long getLibraryIndex () const
 
unsigned long long getAddress () const
 
bool getOrdinalNumber (unsigned long long &importOrdinalNumber) const
 
Import::UsageType getUsageType () const
 
bool isUnknown () const
 
bool isFunction () const
 
bool isObject () const
 
bool isFile () const
 
void setName (std::string importName)
 
void setLibraryIndex (unsigned long long importLibraryIndex)
 
void setAddress (unsigned long long importAddress)
 
void setOrdinalNumber (unsigned long long importOrdinalNumber)
 
void setUsageType (Import::UsageType importUsageType)
 
void invalidateOrdinalNumber ()
 
bool hasEmptyName () const
 

Private Attributes

std::uint32_t flags
 

Additional Inherited Members

- Public Types inherited from retdec::fileformat::Import
enum class  UsageType { UNKNOWN , FUNCTION , OBJECT , FILE }
 

Detailed Description

One import

Constructor & Destructor Documentation

◆ PeImport()

retdec::fileformat::PeImport::PeImport ( std::uint32_t  importFlags)

Constructor

Member Function Documentation

◆ isDelayed()

bool retdec::fileformat::PeImport::isDelayed ( ) const

Is import delayed.

Returns
true if delayed, otherwise false.

◆ isUsedForImphash()

bool retdec::fileformat::PeImport::isUsedForImphash ( ) const
overridevirtual

Virtual method which indicates whether import should be used for calculating imphash.

Returns
true if should be used, otherwise false.

Reimplemented from retdec::fileformat::Import.

◆ setDelayed()

void retdec::fileformat::PeImport::setDelayed ( bool  importDelayed)

Set/unset delayed import.

Parameters
importDelayedtrue if delayed, otherwise false.

Member Data Documentation

◆ flags

std::uint32_t retdec::fileformat::PeImport::flags
private

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