16#ifndef LIEF_PE_RESOURCE_VAR_FILE_INFO_H
17#define LIEF_PE_RESOURCE_VAR_FILE_INFO_H
41 using vars_t = std::vector<ResourceVar>;
66 const std::u16string&
key()
const {
88 key_ = std::move(
key);
93 vars_.push_back(std::move(var));
Class that is used to a read stream of data from different sources.
Definition BinaryStream.hpp:33
ResourceVarFileInfo & type(uint16_t type)
Definition ResourceVarFileInfo.hpp:82
static result< ResourceVarFileInfo > parse(BinaryStream &stream)
friend std::ostream & operator<<(std::ostream &os, const ResourceVarFileInfo &entry)
const std::u16string & key() const
Signature of the structure. Must be the unicode string "VarFileInfo".
Definition ResourceVarFileInfo.hpp:66
uint16_t type() const
The type of data in the version resource.
Definition ResourceVarFileInfo.hpp:61
void accept(Visitor &visitor) const override
it_const_vars vars() const
Definition ResourceVarFileInfo.hpp:78
ResourceVarFileInfo()=default
std::string key_u8() const
Key as an utf8 string.
ResourceVarFileInfo & key(std::u16string key)
Definition ResourceVarFileInfo.hpp:87
it_vars vars()
Iterator over the embedded variables associated to the structure.
Definition ResourceVarFileInfo.hpp:74
ref_iterator< vars_t & > it_vars
Definition ResourceVarFileInfo.hpp:43
ResourceVarFileInfo & operator=(ResourceVarFileInfo &&)=default
ResourceVarFileInfo & operator=(const ResourceVarFileInfo &)=default
void add_var(ResourceVar var)
Definition ResourceVarFileInfo.hpp:92
ResourceVarFileInfo(ResourceVarFileInfo &&)=default
~ResourceVarFileInfo() override=default
std::vector< ResourceVar > vars_t
Definition ResourceVarFileInfo.hpp:41
const_ref_iterator< const vars_t & > it_const_vars
Definition ResourceVarFileInfo.hpp:44
ResourceVarFileInfo(const ResourceVarFileInfo &)=default
This class represents an element of the ResourceVarFileInfo structure It typically contains a list of...
Definition ResourceVar.hpp:33
Definition Visitor.hpp:210
Iterator which returns reference on container's values.
Definition iterators.hpp:46
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
LIEF namespace.
Definition Abstract/Binary.hpp:40
ref_iterator< CT, U, typename decay_t< CT >::const_iterator > const_ref_iterator
Iterator which return const ref on container's values.
Definition iterators.hpp:257
tl::expected< T, lief_errors > result
Wrapper that contains an Object (T) or an error.
Definition errors.hpp:75
#define LIEF_API
Definition visibility.h:41