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

#include <data_directory.h>

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

Public Member Functions

Getters
std::string getType () const
 
std::string getAddressStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
Setters
void setType (std::string dirType)
 
void setAddress (unsigned long long dirAddr)
 
void setSize (unsigned long long dirSize)
 

Private Attributes

std::string type
 type of directory More...
 
unsigned long long address = std::numeric_limits<unsigned long long>::max()
 address in memory More...
 
unsigned long long size = std::numeric_limits<unsigned long long>::max()
 size of directory More...
 

Detailed Description

Class for save information about data directory.

Value std::numeric_limits<unsigned long long>::max() mean unspecified value or error for unsigned integer types.

Member Function Documentation

◆ getAddressStr()

std::string retdec::fileinfo::DataDirectory::getAddressStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get start address (in memory) of directory

Parameters
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Start address (in memory) of directory

◆ getSizeStr()

std::string retdec::fileinfo::DataDirectory::getSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get size of directory

Returns
Size of directory

◆ getType()

std::string retdec::fileinfo::DataDirectory::getType ( ) const

Get type (description) of directory

Returns
Type of directory

◆ setAddress()

void retdec::fileinfo::DataDirectory::setAddress ( unsigned long long  dirAddr)

Set start address of directory

Parameters
dirAddrStart address of directory

◆ setSize()

void retdec::fileinfo::DataDirectory::setSize ( unsigned long long  dirSize)

Set size of directory

Parameters
dirSizeSize of directory

◆ setType()

void retdec::fileinfo::DataDirectory::setType ( std::string  dirType)

Set type (description) of directory

Parameters
dirTypeType of directory

Member Data Documentation

◆ address

unsigned long long retdec::fileinfo::DataDirectory::address = std::numeric_limits<unsigned long long>::max()
private

address in memory

◆ size

unsigned long long retdec::fileinfo::DataDirectory::size = std::numeric_limits<unsigned long long>::max()
private

size of directory

◆ type

std::string retdec::fileinfo::DataDirectory::type
private

type of directory


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