#include <flags.h>
◆ addDescriptor()
void retdec::fileinfo::Flags::addDescriptor |
( |
std::string |
descriptor, |
|
|
std::string |
abbreviation |
|
) |
| |
Add flag descriptor
- Parameters
-
descriptor | Descriptor (full description of flag) |
abbreviation | Abbreviation (short description of flag) |
◆ clearDescriptors()
void retdec::fileinfo::Flags::clearDescriptors |
( |
| ) |
|
Delete every descriptors and its abbreviations
◆ getDescriptors()
void retdec::fileinfo::Flags::getDescriptors |
( |
std::vector< std::string > & |
desc, |
|
|
std::vector< std::string > & |
abb |
|
) |
| const |
Get flags descriptors and its abbreviations
- Parameters
-
desc | Vector for save descriptors |
abb | Vector for save abbreviations of descriptors |
The first element in abb corresponds to the first element in desc etc. Before loading descriptors, everything from vectors desc and abb is deleted. It is guaranteed that the number of stored descriptors and abbreviations are the same.
◆ getFlags()
unsigned long long retdec::fileinfo::Flags::getFlags |
( |
| ) |
const |
Get binary flags
- Returns
- Flags as one number
◆ getFlagsStr()
std::string retdec::fileinfo::Flags::getFlagsStr |
( |
| ) |
const |
Get flags as string
- Returns
- Flags in string representation
◆ getNumberOfDescriptors()
std::size_t retdec::fileinfo::Flags::getNumberOfDescriptors |
( |
| ) |
const |
Get number of descriptors and its abbreviations
- Returns
- Number of descriptors
It is guaranteed that the number of descriptors and abbreviations are the same
◆ getSize()
unsigned long long retdec::fileinfo::Flags::getSize |
( |
| ) |
const |
Get number of flags
- Returns
- Number of binary flags
◆ setFlags()
void retdec::fileinfo::Flags::setFlags |
( |
unsigned long long |
flags | ) |
|
◆ setSize()
void retdec::fileinfo::Flags::setSize |
( |
unsigned long long |
flagsSize | ) |
|
Set flags size (number of flags)
- Parameters
-
flagsSize | Number of binary flags |
Maximum permissible value of parameter flagsSize is bit-width of unsigned long long int type. If value of flagsSize is greater, it will be automatically reduce to the maximum permissible value.
◆ abbs
std::vector<std::string> retdec::fileinfo::Flags::abbs |
|
private |
abbreviations of descriptors
◆ descriptors
std::vector<std::string> retdec::fileinfo::Flags::descriptors |
|
private |
◆ flagsArray
unsigned long long retdec::fileinfo::Flags::flagsArray = 0 |
|
private |
◆ size
unsigned long long retdec::fileinfo::Flags::size = 0 |
|
private |
The documentation for this class was generated from the following files:
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/src/fileinfo/file_information/file_information_types/flags.h
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/src/fileinfo/file_information/file_information_types/flags.cpp