16#ifndef LIEF_PE_RESOURCE_VERSION_H
17#define LIEF_PE_RESOURCE_VERSION_H
22#include "LIEF/visibility.h"
24#include "LIEF/Object.hpp"
28class ResourceFixedFileInfo;
29class ResourceStringFileInfo;
30class ResourceVarFileInfo;
32class ResourcesManager;
33struct ResourcesParser;
40 friend struct ResourcesParser;
54 const std::u16string&
key()
const;
82 void type(uint16_t type);
84 void key(std::u16string key) {
85 key_ = std::move(key);
87 void key(
const std::string& key);
90 void remove_fixed_file_info();
93 void remove_string_file_info();
96 void remove_var_file_info();
98 void accept(
Visitor& visitor)
const override;
101 LIEF_API
friend std::ostream& operator<<(std::ostream& os,
const ResourceVersion& version);
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
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...
const ResourceFixedFileInfo * fixed_file_info() const
Object that describes various information about the application's version. This is an optional inform...
bool has_fixed_file_info() const
true if the version contains a ResourceFixedFileInfo
uint16_t type() const
The type of data in the version resource.
bool has_var_file_info() const
true if the version contains a ResourceVarFileInfo
const std::u16string & key() const
Signature of the structure: Must be the unicode string "VS_VERSION_INFO".
The Resource Manager provides an enhanced API to manipulate the resource tree.
Definition ResourcesManager.hpp:38
Definition Visitor.hpp:219
LIEF namespace.
Definition Abstract/Binary.hpp:32