16#ifndef LIEF_PE_RESOURCE_VERSION_H
17#define LIEF_PE_RESOURCE_VERSION_H
28class ResourceFixedFileInfo;
29class ResourceStringFileInfo;
30class ResourceVarFileInfo;
32class ResourcesManager;
33struct ResourcesParser;
40 friend struct ResourcesParser;
54 const std::u16string&
key()
const;
84 void key(std::u16string key) {
85 key_ = std::move(key);
87 void key(
const std::string& key);
110 std::unique_ptr<ResourceFixedFileInfo> fixed_file_info_;
111 std::unique_ptr<ResourceStringFileInfo> string_file_info_;
112 std::unique_ptr<ResourceVarFileInfo> var_file_info_;
Representation of VS_FIXEDFILEINFO Structure.
Definition ResourceFixedFileInfo.hpp:36
Representation of the StringFileInfo structure.
Definition ResourceStringFileInfo.hpp:38
This object describes information about languages supported by the application.
Definition ResourceVarFileInfo.hpp:36
Representation of the data associated with the RT_VERSION entry.
Definition ResourceVersion.hpp:38
void key(const std::string &key)
ResourceVersion(const ResourceVersion &)
bool has_string_file_info() const
true if the version contains a ResourceStringFileInfo
const ResourceVarFileInfo * var_file_info() const
Object that describes information about languages supported by the application This structure is not ...
const ResourceStringFileInfo * string_file_info() const
Object that describes various information about the application's version. The underlying structure i...
ResourceFixedFileInfo * fixed_file_info()
void remove_var_file_info()
void key(std::u16string key)
Definition ResourceVersion.hpp:84
const ResourceFixedFileInfo * fixed_file_info() const
Object that describes various information about the application's version. This is an optional inform...
void remove_fixed_file_info()
bool has_fixed_file_info() const
true if the version contains a ResourceFixedFileInfo
ResourceVarFileInfo * var_file_info()
ResourceStringFileInfo * string_file_info()
void remove_string_file_info()
~ResourceVersion() override
void string_file_info(const ResourceStringFileInfo &string_file_info)
friend std::ostream & operator<<(std::ostream &os, const ResourceVersion &version)
uint16_t type() const
The type of data in the version resource.
void var_file_info(const ResourceVarFileInfo &var_file_info)
ResourceVersion & operator=(const ResourceVersion &)
bool has_var_file_info() const
true if the version contains a ResourceVarFileInfo
void fixed_file_info(const ResourceFixedFileInfo &fixed_file_info)
const std::u16string & key() const
Signature of the structure: Must be the unicode string "VS_VERSION_INFO".
void accept(Visitor &visitor) const override
The Resource Manager provides an enhanced API to manipulate the resource tree.
Definition ResourcesManager.hpp:38
Definition Visitor.hpp:224
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41