retdec
Private Attributes | List of all members
retdec::fileinfo::RichHeader Class Reference

#include <rich_header.h>

Collaboration diagram for retdec::fileinfo::RichHeader:
Collaboration graph
[legend]

Public Member Functions

Getters
std::size_t getNumberOfStoredRecords () const
 
std::string getSignature () const
 
std::string getOffsetStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getKeyStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getRecordProductIdStr (std::size_t position) const
 
std::string getRecordProductBuildStr (std::size_t position) const
 
std::string getRecordNumberOfUsesStr (std::size_t position) const
 
std::string getRecordProductNameStr (std::size_t position) const
 
std::string getRecordVisualStudioNameStr (std::size_t position) const
 
std::vector< std::uint8_t > getRawBytes () const
 
Setters
void setHeader (const retdec::fileformat::RichHeader *richHeader)
 
Other methods
bool hasRecords () const
 

Private Attributes

const retdec::fileformat::RichHeaderheader = nullptr
 

Detailed Description

Class for rich header

Member Function Documentation

◆ getKeyStr()

std::string retdec::fileinfo::RichHeader::getKeyStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get key for decryption of header

Returns
Key for decryption of header

◆ getNumberOfStoredRecords()

std::size_t retdec::fileinfo::RichHeader::getNumberOfStoredRecords ( ) const

Get number of records in header

Returns
Number of records in header

◆ getOffsetStr()

std::string retdec::fileinfo::RichHeader::getOffsetStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get offset of header in file

Returns
Offset of header in file

◆ getRawBytes()

std::vector< std::uint8_t > retdec::fileinfo::RichHeader::getRawBytes ( ) const

Get raw bytes

Returns
Raw bytes of rich header.

◆ getRecordNumberOfUsesStr()

std::string retdec::fileinfo::RichHeader::getRecordNumberOfUsesStr ( std::size_t  position) const

Get number of uses

Parameters
positionIndex of selected record from header (indexed from 0)
Returns
Number of uses

◆ getRecordProductBuildStr()

std::string retdec::fileinfo::RichHeader::getRecordProductBuildStr ( std::size_t  position) const

Get build version

Parameters
positionIndex of selected record from header (indexed from 0)
Returns
Build version of linker

◆ getRecordProductIdStr()

std::string retdec::fileinfo::RichHeader::getRecordProductIdStr ( std::size_t  position) const

Get major version

Parameters
positionIndex of selected record from header (indexed from 0)
Returns
Major version of linker

◆ getRecordProductNameStr()

std::string retdec::fileinfo::RichHeader::getRecordProductNameStr ( std::size_t  position) const

Retrieve the product name

Parameters
positionIndex of selected record from header (indexed from 0)
Returns
Product name as std::string

◆ getRecordVisualStudioNameStr()

std::string retdec::fileinfo::RichHeader::getRecordVisualStudioNameStr ( std::size_t  position) const

Retrieve the Visual Studio name

Parameters
positionIndex of selected record from header (indexed from 0)
Returns
Visual Studio name as std::string

◆ getSignature()

std::string retdec::fileinfo::RichHeader::getSignature ( ) const

Get decrypted header as string

Returns
Decrypted header as string

◆ hasRecords()

bool retdec::fileinfo::RichHeader::hasRecords ( ) const

Find out if there are any records

Returns
true if there are some records, false otherwise

◆ setHeader()

void retdec::fileinfo::RichHeader::setHeader ( const retdec::fileformat::RichHeader richHeader)

Set rich header data

Parameters
richHeaderInstance of class with original information about rich header

Member Data Documentation

◆ header

const retdec::fileformat::RichHeader* retdec::fileinfo::RichHeader::header = nullptr
private

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