|
| PatternMatchesPlainGetter (FileInformation &fileInfo, const std::vector< PatternMatch > &pMatches) |
|
virtual std::size_t | getBasicInfo (std::size_t structIndex, std::vector< std::string > &desc, std::vector< std::string > &info) const override |
|
virtual bool | getFlagDescriptors (std::size_t structIndex, std::vector< std::string > &desc, std::vector< std::string > &abbv) const override |
|
| IterativeDistributionGetter (FileInformation &fileInfo) |
|
std::size_t | getDistribution (std::size_t structIndex, std::vector< std::size_t > &distr) const |
|
std::size_t | getHeaderDesc (std::size_t structIndex, std::vector< std::string > &desc, std::vector< std::string > &abb) const |
|
void | getHeader (std::size_t structIndex, std::string &header) const |
|
bool | getDistributionFlags (std::size_t structIndex, std::vector< bool > &flags) const |
|
virtual bool | getRecord (std::size_t structIndex, std::size_t recIndex, std::vector< std::string > &record) const override |
|
| IterativeGetter (FileInformation &fileInfo) |
|
std::size_t | getNumberOfStructures () const |
|
std::size_t | getNumberOfStoredRecords (std::size_t structIndex) const |
|
std::size_t | getHeaderElements (std::size_t structIndex, std::vector< std::string > &elements) const |
|
void | getTitle (std::string &structTitle) const |
|
bool | hasBasicInfo (std::size_t structIndex) const |
|
Getter for pattern matches
bool retdec::fileinfo::PatternMatchesPlainGetter::getFlagDescriptors |
( |
std::size_t |
structIndex, |
|
|
std::vector< std::string > & |
desc, |
|
|
std::vector< std::string > & |
abbv |
|
) |
| const |
|
overridevirtual |
Get descriptors (and its abbreviations) of all records in structure
- Parameters
-
structIndex | Index of selected structure (indexed from 0) |
desc | Vector for save descriptors |
abbv | Vector for save abbreviations |
- Returns
true
if index of selected structure is valid, false
otherwise. If index is not valid, desc and abbv are left unchanged.
Into desc is stored each flag descriptor, which is assigned to at least one record. Into abbv are stored abbreviations of descriptors, which are stored in desc.
Before loading descriptors, everything from vectors desc and abbv is deleted.
Implements retdec::fileinfo::IterativeDistributionGetter.
bool retdec::fileinfo::PatternMatchesPlainGetter::loadRecord |
( |
std::size_t |
structIndex, |
|
|
std::size_t |
recIndex, |
|
|
std::vector< std::string > & |
record |
|
) |
| |
|
overrideprotectedvirtual |
Load one record
- Parameters
-
structIndex | Index of selected structure (indexed from 0) |
recIndex | Index of record in selected structure (indexed from 0) |
record | Vector for save record. At end of vector are stored special additional information, if these information are present. Number and semantics of additional information may be different for every separate structure. |
- Returns
true
if record was successfully saved, false
otherwise
Before loading record, everything from vector record is deleted.
If method returns true
, record contains as many elements as vector returned by the method getHeaderElements(structIndex) as well as vector returned by the method getDistribution(structIndex).
If structIndex or recIndex is out of range, method returns false
.
Implements retdec::fileinfo::IterativeDistributionGetter.