retdec
Public Member Functions | List of all members
retdec::fileinfo::HeaderPlainGetter Class Reference

#include <header_plain_getter.h>

Inheritance diagram for retdec::fileinfo::HeaderPlainGetter:
Inheritance graph
[legend]
Collaboration diagram for retdec::fileinfo::HeaderPlainGetter:
Collaboration graph
[legend]

Public Member Functions

 HeaderPlainGetter (FileInformation &fileInfo)
 
virtual std::size_t loadInformation (std::vector< std::string > &desc, std::vector< std::string > &info) const override
 
void getFileFlags (std::string &title, std::string &flags, std::vector< std::string > &desc, std::vector< std::string > &abbv) const
 
void getDllFlags (std::string &title, std::string &flags, std::vector< std::string > &desc, std::vector< std::string > &abbv) const
 
- Public Member Functions inherited from retdec::fileinfo::SimpleGetter
 SimpleGetter (FileInformation &fileInfo)
 

Additional Inherited Members

- Protected Attributes inherited from retdec::fileinfo::SimpleGetter
FileInformationfileinfo
 

Detailed Description

Getter for information from file headers

Constructor & Destructor Documentation

◆ HeaderPlainGetter()

retdec::fileinfo::HeaderPlainGetter::HeaderPlainGetter ( FileInformation fileInfo)

Constructor

Parameters
fileInfoInformation about file

Member Function Documentation

◆ getDllFlags()

void retdec::fileinfo::HeaderPlainGetter::getDllFlags ( std::string &  title,
std::string &  flags,
std::vector< std::string > &  desc,
std::vector< std::string > &  abbv 
) const

Get DLL flags

Parameters
titleInto this parameter name of flags is stored
flagsInto this parameter flags are stored
descVector for save descriptors
abbvVector for save abbreviations of descriptors

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

◆ getFileFlags()

void retdec::fileinfo::HeaderPlainGetter::getFileFlags ( std::string &  title,
std::string &  flags,
std::vector< std::string > &  desc,
std::vector< std::string > &  abbv 
) const

Get file flags

Parameters
titleInto this parameter name of flags is stored
flagsInto this parameter flags are stored
descVector for save descriptors
abbvVector for save abbreviations of descriptors

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

◆ loadInformation()

std::size_t retdec::fileinfo::HeaderPlainGetter::loadInformation ( std::vector< std::string > &  desc,
std::vector< std::string > &  info 
) const
overridevirtual

Load information about file

Parameters
descVector for save descriptions of information
infoVector for save information about file
Returns
Number of loaded information (this is equal to number of elements in desc and in info)

Before loading information about file, everything from vectors desc and info is deleted

Implements retdec::fileinfo::SimpleGetter.


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