LIEF: Library to Instrument Executable Formats Version 0.15.1
Loading...
Searching...
No Matches
LIEF::PE::Export Class Reference

Class which represents a PE Export. More...

#include <Export.hpp>

Inheritance diagram for LIEF::PE::Export:
Collaboration diagram for LIEF::PE::Export:

Public Types

using entries_t = std::vector<ExportEntry>
 
using it_entries = ref_iterator<entries_t&>
 
using it_const_entries = const_ref_iterator<const entries_t&>
 
- Public Types inherited from LIEF::Object
template<class T >
using output_t = add_pointer_t<decay_t<T>>
 
template<class T >
using output_const_t = add_pointer_t<add_const_t<decay_t<T>>>
 

Public Member Functions

 Export ()=default
 
 Export (const details::pe_export_directory_table &header)
 
 Export (const Export &)=default
 
Exportoperator= (const Export &)=default
 
 ~Export () override=default
 
uint32_t export_flags () const
 According to the PE specifications this value is reserved and should be set to 0.
 
uint32_t timestamp () const
 The time and date that the export data was created.
 
uint16_t major_version () const
 The major version number (can be user-defined)
 
uint16_t minor_version () const
 The minor version number (can be user-defined)
 
uint32_t ordinal_base () const
 The starting number for the exports. Usually this value is set to 1.
 
const std::string & name () const
 The name of the library exported (e.g. KERNEL32.dll)
 
it_entries entries ()
 Iterator over the ExportEntry.
 
it_const_entries entries () const
 
void export_flags (uint32_t flags)
 
void timestamp (uint32_t timestamp)
 
void major_version (uint16_t major_version)
 
void minor_version (uint16_t minor_version)
 
void ordinal_base (uint32_t ordinal_base)
 
void name (std::string name)
 
void accept (Visitor &visitor) const override
 
- Public Member Functions inherited from LIEF::Object
 Object ()
 
 Object (const Object &other)
 
Objectoperator= (const Object &other)
 
template<class T >
output_t< T > as ()
 
template<class T >
output_const_t< T > as () const
 
virtual bool operator== (const Object &other) const
 
virtual bool operator!= (const Object &other) const
 
virtual ~Object ()
 

Detailed Description

Class which represents a PE Export.

Member Typedef Documentation

◆ entries_t

◆ it_const_entries

◆ it_entries

Constructor & Destructor Documentation

◆ Export() [1/3]

LIEF::PE::Export::Export ( )
default

◆ Export() [2/3]

LIEF::PE::Export::Export ( const details::pe_export_directory_table & header)

◆ Export() [3/3]

LIEF::PE::Export::Export ( const Export & )
default

◆ ~Export()

LIEF::PE::Export::~Export ( )
overridedefault

Member Function Documentation

◆ accept()

void LIEF::PE::Export::accept ( Visitor & visitor) const
overridevirtual

Implements LIEF::Object.

◆ entries() [1/2]

it_entries LIEF::PE::Export::entries ( )
inline

Iterator over the ExportEntry.

◆ entries() [2/2]

it_const_entries LIEF::PE::Export::entries ( ) const
inline

◆ export_flags() [1/2]

uint32_t LIEF::PE::Export::export_flags ( ) const
inline

According to the PE specifications this value is reserved and should be set to 0.

◆ export_flags() [2/2]

void LIEF::PE::Export::export_flags ( uint32_t flags)
inline

◆ major_version() [1/2]

uint16_t LIEF::PE::Export::major_version ( ) const
inline

The major version number (can be user-defined)

◆ major_version() [2/2]

void LIEF::PE::Export::major_version ( uint16_t major_version)
inline

◆ minor_version() [1/2]

uint16_t LIEF::PE::Export::minor_version ( ) const
inline

The minor version number (can be user-defined)

◆ minor_version() [2/2]

void LIEF::PE::Export::minor_version ( uint16_t minor_version)
inline

◆ name() [1/2]

const std::string & LIEF::PE::Export::name ( ) const
inline

The name of the library exported (e.g. KERNEL32.dll)

◆ name() [2/2]

void LIEF::PE::Export::name ( std::string name)
inline

◆ operator=()

Export & LIEF::PE::Export::operator= ( const Export & )
default

◆ ordinal_base() [1/2]

uint32_t LIEF::PE::Export::ordinal_base ( ) const
inline

The starting number for the exports. Usually this value is set to 1.

◆ ordinal_base() [2/2]

void LIEF::PE::Export::ordinal_base ( uint32_t ordinal_base)
inline

◆ timestamp() [1/2]

uint32_t LIEF::PE::Export::timestamp ( ) const
inline

The time and date that the export data was created.

◆ timestamp() [2/2]

void LIEF::PE::Export::timestamp ( uint32_t timestamp)
inline

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