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

#include <symbol.h>

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

Public Member Functions

Getters
std::string getName () const
 
std::string getType () const
 
std::string getBind () const
 
std::string getOther () const
 
std::string getLinkToSection () const
 
std::string getIndexStr () const
 
std::string getValueStr () const
 
std::string getAddressStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSizeStr () const
 
Setters
void setName (std::string symbolName)
 
void setType (std::string symbolType)
 
void setBind (std::string symbolBind)
 
void setOther (std::string otherInformation)
 
void setLinkToSection (std::string link)
 
void setIndex (unsigned long long symbolIndex)
 
void setValue (unsigned long long symbolValue)
 
void setAddress (unsigned long long addressValue)
 
void setSize (unsigned long long symbolSize)
 

Private Attributes

std::string name
 name of symbol More...
 
std::string type
 type of symbol More...
 
std::string bind
 symbol bind More...
 
std::string other
 other information More...
 
std::string linkToSection
 link to associated section More...
 
unsigned long long index = std::numeric_limits<unsigned long long>::max()
 index of symbol in symbol table More...
 
unsigned long long value = std::numeric_limits<unsigned long long>::max()
 value of symbol More...
 
unsigned long long address = std::numeric_limits<unsigned long long>::max()
 symbol address More...
 
unsigned long long size = std::numeric_limits<unsigned long long>::max()
 size associated with symbol More...
 

Detailed Description

Class for one symbol

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

Member Function Documentation

◆ getAddressStr()

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

Get symbol address

Parameters
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Symbol address

◆ getBind()

std::string retdec::fileinfo::Symbol::getBind ( ) const

Get symbol bind

Returns
Symbol bind

◆ getIndexStr()

std::string retdec::fileinfo::Symbol::getIndexStr ( ) const

Get index of symbol in symbol table

Returns
Index of symbol in symbol table

◆ getLinkToSection()

std::string retdec::fileinfo::Symbol::getLinkToSection ( ) const

Get link to associated section

Returns
Link to associated section

◆ getName()

std::string retdec::fileinfo::Symbol::getName ( ) const

Get symbol name

Returns
Symbol name

◆ getOther()

std::string retdec::fileinfo::Symbol::getOther ( ) const

Get other information

Returns
Other information about symbol

◆ getSizeStr()

std::string retdec::fileinfo::Symbol::getSizeStr ( ) const

Get symbol size

Returns
Symbol size

◆ getType()

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

Get symbol type

Returns
Symbol type

◆ getValueStr()

std::string retdec::fileinfo::Symbol::getValueStr ( ) const

Get symbol value

Returns
Symbol value

◆ setAddress()

void retdec::fileinfo::Symbol::setAddress ( unsigned long long  addressValue)

Set address of symbol

Parameters
addressValueAddress of symbol

◆ setBind()

void retdec::fileinfo::Symbol::setBind ( std::string  symbolBind)

Set symbol bind

Parameters
symbolBindSimbol bind

◆ setIndex()

void retdec::fileinfo::Symbol::setIndex ( unsigned long long  symbolIndex)

Set index of symbol in symbol table

Parameters
symbolIndexIndex of symbol in symbol table

◆ setLinkToSection()

void retdec::fileinfo::Symbol::setLinkToSection ( std::string  link)

Set link to associated section

Parameters
linkLink to associated section

◆ setName()

void retdec::fileinfo::Symbol::setName ( std::string  symbolName)

Set symbol name

Parameters
symbolNameSymbol name

◆ setOther()

void retdec::fileinfo::Symbol::setOther ( std::string  otherInformation)

Set other information about symbol

Parameters
otherInformationOther information about symbol

◆ setSize()

void retdec::fileinfo::Symbol::setSize ( unsigned long long  symbolSize)

Set size associated with symbol

Parameters
symbolSizeSize associated with symbol

◆ setType()

void retdec::fileinfo::Symbol::setType ( std::string  symbolType)

Set symbol type

Parameters
symbolTypeSymbol type

◆ setValue()

void retdec::fileinfo::Symbol::setValue ( unsigned long long  symbolValue)

Set symbol value

Parameters
symbolValueSymbol value

Member Data Documentation

◆ address

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

symbol address

◆ bind

std::string retdec::fileinfo::Symbol::bind
private

symbol bind

◆ index

unsigned long long retdec::fileinfo::Symbol::index = std::numeric_limits<unsigned long long>::max()
private

index of symbol in symbol table

◆ linkToSection

std::string retdec::fileinfo::Symbol::linkToSection
private

link to associated section

◆ name

std::string retdec::fileinfo::Symbol::name
private

name of symbol

◆ other

std::string retdec::fileinfo::Symbol::other
private

other information

◆ size

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

size associated with symbol

◆ type

std::string retdec::fileinfo::Symbol::type
private

type of symbol

◆ value

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

value of symbol


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