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

#include <dynamic_entry.h>

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

Public Member Functions

Getters
std::string getType () const
 
std::string getDescription () const
 
std::string getValueStr (std::ios_base &(*format)(std::ios_base &)) const
 
unsigned long long getFlagsSize () const
 
unsigned long long getFlags () const
 
std::string getFlagsStr () const
 
std::size_t getNumberOfFlagsDescriptors () const
 
void getFlagsDescriptors (std::vector< std::string > &desc, std::vector< std::string > &abb) const
 
Setters
void setType (std::string dynType)
 
void setDescription (std::string desc)
 
void setValue (unsigned long long dynValue)
 
void setFlagsSize (unsigned long long flagsSize)
 
void setFlags (unsigned long long flagsValue)
 
Other methods
void addFlagsDescriptor (std::string descriptor, std::string abbreviation)
 
void clearFlagsDescriptors ()
 

Private Attributes

std::string type
 
std::string description
 
unsigned long long value = std::numeric_limits<unsigned long long>::max()
 
Flags flags
 

Detailed Description

Class for dynamic entry

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

Member Function Documentation

◆ addFlagsDescriptor()

void retdec::fileinfo::DynamicEntry::addFlagsDescriptor ( std::string  descriptor,
std::string  abbreviation 
)

Add flag descriptor

Parameters
descriptorDescriptor (full description of flag)
abbreviationAbbreviation (short description of flag)

◆ clearFlagsDescriptors()

void retdec::fileinfo::DynamicEntry::clearFlagsDescriptors ( )

Delete all flags descriptors

◆ getDescription()

std::string retdec::fileinfo::DynamicEntry::getDescription ( ) const

Get description of dynamic entry

Returns
Description of dynamic entry

◆ getFlags()

unsigned long long retdec::fileinfo::DynamicEntry::getFlags ( ) const

Get flags

Returns
Flags as number

◆ getFlagsDescriptors()

void retdec::fileinfo::DynamicEntry::getFlagsDescriptors ( std::vector< std::string > &  desc,
std::vector< std::string > &  abb 
) const

Get flags descriptors and its abbreviations

Parameters
descVector for save descriptors
abbVector for save abbreviations of descriptors

It is guaranteed that the number of stored descriptors and abbreviations are the same

◆ getFlagsSize()

unsigned long long retdec::fileinfo::DynamicEntry::getFlagsSize ( ) const

Get number of flags

Returns
Number of flags

◆ getFlagsStr()

std::string retdec::fileinfo::DynamicEntry::getFlagsStr ( ) const

Get flags

Returns
Flags as string

◆ getNumberOfFlagsDescriptors()

std::size_t retdec::fileinfo::DynamicEntry::getNumberOfFlagsDescriptors ( ) const

Get number of flags descriptors

Returns
Number of flags descriptors

◆ getType()

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

Get type of dynamic entry

Returns
Type of dynamic entry

◆ getValueStr()

std::string retdec::fileinfo::DynamicEntry::getValueStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get value of dynamic entry

Parameters
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Value of dynamic entry

◆ setDescription()

void retdec::fileinfo::DynamicEntry::setDescription ( std::string  desc)

Set description of dynamic entry

Parameters
descDescription of dynamic entry

◆ setFlags()

void retdec::fileinfo::DynamicEntry::setFlags ( unsigned long long  flagsValue)

Set flags value

Parameters
flagsValueFlags value

◆ setFlagsSize()

void retdec::fileinfo::DynamicEntry::setFlagsSize ( unsigned long long  flagsSize)

Set number of flags

Parameters
flagsSizeNumber of flags

◆ setType()

void retdec::fileinfo::DynamicEntry::setType ( std::string  dynType)

Set type of dynamic entry

Parameters
dynTypeType of dynamic entry

◆ setValue()

void retdec::fileinfo::DynamicEntry::setValue ( unsigned long long  dynValue)

Set value of dynamic entry

Parameters
dynValueValue of dynamic entry

Member Data Documentation

◆ description

std::string retdec::fileinfo::DynamicEntry::description
private

◆ flags

Flags retdec::fileinfo::DynamicEntry::flags
private

◆ type

std::string retdec::fileinfo::DynamicEntry::type
private

◆ value

unsigned long long retdec::fileinfo::DynamicEntry::value = std::numeric_limits<unsigned long long>::max()
private

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