LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
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>;
43 using it_vars = ref_iterator<vars_t&>;
44 using it_const_vars = const_ref_iterator<const vars_t&>;
46 static result<ResourceVarFileInfo>
parse(BinaryStream& stream);
51 ResourceVarFileInfo&
operator=(
const ResourceVarFileInfo&) =
default;
54 ResourceVarFileInfo&
operator=(ResourceVarFileInfo&&) =
default;
57 uint16_t
type()
const {
64 const std::u16string&
key()
const {
69 std::string
key_u8()
const;
78 it_const_vars
vars()
const {
82 ResourceVarFileInfo&
type(uint16_t type) {
87 ResourceVarFileInfo&
key(std::u16string key) {
88 key_ = std::move(key);
93 vars_.push_back(std::move(var));
96 void accept(Visitor& visitor)
const override;
99 std::ostream&
operator<<(std::ostream& os,
const ResourceVarFileInfo& entry);
Class that is used to a read stream of data from different sources.
Definition BinaryStream.hpp:33
Representation of the VarFileInfo structure.
Definition ResourceVarFileInfo.hpp:39
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
ResourceVarFileInfo & operator=(ResourceVarFileInfo &&)=default
ResourceVarFileInfo & operator=(const ResourceVarFileInfo &)=default
void add_var(ResourceVar var)
Definition ResourceVarFileInfo.hpp:92
ResourceVarFileInfo(ResourceVarFileInfo &&)=default
~ResourceVarFileInfo() override=default
ResourceVarFileInfo(const ResourceVarFileInfo &)=default
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41