retdec
|
#include <dynamic_section.h>
Public Member Functions | |
Getters | |
std::size_t | getNumberOfStoredEntries () const |
std::string | getNumberOfDeclaredEntriesStr () const |
std::string | getSectionName () const |
std::string | getEntryType (std::size_t position) const |
std::string | getEntryDescription (std::size_t position) const |
std::string | getEntryValueStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const |
unsigned long long | getEntryFlagsSize (std::size_t position) const |
unsigned long long | getEntryFlags (std::size_t position) const |
std::string | getEntryFlagsStr (std::size_t position) const |
std::size_t | getNumberOfEntryFlagsDescriptors (std::size_t position) const |
void | getEntryFlagsDescriptors (std::size_t position, std::vector< std::string > &desc, std::vector< std::string > &abb) const |
Setters | |
void | setNumberOfDeclaredEntries (unsigned long long entries) |
void | setSectionName (std::string sectionName) |
Other methods | |
void | addEntry (DynamicEntry &entry) |
void | clearEntries () |
Private Attributes | |
unsigned long long | declaredEntries = std::numeric_limits<unsigned long long>::max() |
declared number of entries in section More... | |
std::string | name |
std::vector< DynamicEntry > | table |
Class for dynamic section
Value std::numeric_limits<unsigned long long>::max() mean unspecified value or error for numeric types. Methods with index parameters does not perform control of indexes.
void retdec::fileinfo::DynamicSection::addEntry | ( | DynamicEntry & | entry | ) |
Add entry to section
entry | Item to add |
void retdec::fileinfo::DynamicSection::clearEntries | ( | ) |
Delete all entries from section
std::string retdec::fileinfo::DynamicSection::getEntryDescription | ( | std::size_t | position | ) | const |
Get description of selected entry
position | Index of entry in section (0..x) |
unsigned long long retdec::fileinfo::DynamicSection::getEntryFlags | ( | std::size_t | position | ) | const |
Get flags of selected entry
position | Index of entry in section (0..x) |
void retdec::fileinfo::DynamicSection::getEntryFlagsDescriptors | ( | std::size_t | position, |
std::vector< std::string > & | desc, | ||
std::vector< std::string > & | abb | ||
) | const |
Get flags descriptors of selected entry
position | Index of entry in section (0..x) |
desc | Vector for save descriptors |
abb | Vector for save abbreviations of descriptors |
unsigned long long retdec::fileinfo::DynamicSection::getEntryFlagsSize | ( | std::size_t | position | ) | const |
Get number of entry's flags
position | Index of entry in section (0..x) |
std::string retdec::fileinfo::DynamicSection::getEntryFlagsStr | ( | std::size_t | position | ) | const |
Get flags of selected entry
position | Index of entry in section (0..x) |
std::string retdec::fileinfo::DynamicSection::getEntryType | ( | std::size_t | position | ) | const |
Get type of selected entry
position | Index of entry in section (0..x) |
std::string retdec::fileinfo::DynamicSection::getEntryValueStr | ( | std::size_t | position, |
std::ios_base &(*)(std::ios_base &) | format | ||
) | const |
Get value of selected entry
position | Index of entry in section (0..x) |
format | Format of resulting string (e.g. std::dec, std::hex) |
std::string retdec::fileinfo::DynamicSection::getNumberOfDeclaredEntriesStr | ( | ) | const |
Get number of entries in section
Returned value indicates the declared number of entries stored in file section. This number may not be as large as result of method getNumberOfStoredEntries().
std::size_t retdec::fileinfo::DynamicSection::getNumberOfEntryFlagsDescriptors | ( | std::size_t | position | ) | const |
Get number of flags descriptors of selected entry
position | Index of entry in section (0..x) |
std::size_t retdec::fileinfo::DynamicSection::getNumberOfStoredEntries | ( | ) | const |
Get number of entries in section
Returned value indicates the number of entries stored in this instance. This number may not be as large as result of method getNumberOfDeclaredEntries().
std::string retdec::fileinfo::DynamicSection::getSectionName | ( | ) | const |
Get name of dynamic section
void retdec::fileinfo::DynamicSection::setNumberOfDeclaredEntries | ( | unsigned long long | entries | ) |
Set declared number of entries in section
entries | Declared number of entries in section |
void retdec::fileinfo::DynamicSection::setSectionName | ( | std::string | sectionName | ) |
Set name of dynamic section
sectionName | Name of section |
|
private |
declared number of entries in section
|
private |
|
private |