LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
LIEF::PE::ResourceDirectory Class Reference
Inheritance diagram for LIEF::PE::ResourceDirectory:
Inheritance graph
[legend]
Collaboration diagram for LIEF::PE::ResourceDirectory:
Collaboration graph
[legend]

Public Member Functions

 ResourceDirectory (const details::pe_resource_directory_table &header)
 
 ResourceDirectory (const ResourceDirectory &other)
 
ResourceDirectoryoperator= (ResourceDirectory other)
 
void swap (ResourceDirectory &other)
 
std::unique_ptr< ResourceNodeclone () const override
 
uint32_t characteristics () const
 Resource characteristics. This field is reserved for future use. It is currently set to zero.
 
uint32_t time_date_stamp () const
 The time that the resource data was created by the resource compiler.
 
uint16_t major_version () const
 The major version number, set by the user.
 
uint16_t minor_version () const
 The minor version number, set by the user.
 
uint16_t numberof_name_entries () const
 The number of directory entries immediately following the table that use strings to identify Type, Name, or Language entries (depending on the level of the table).
 
uint16_t numberof_id_entries () const
 The number of directory entries immediately following the Name entries that use numeric IDs for Type, Name, or Language entries.
 
void characteristics (uint32_t characteristics)
 
void time_date_stamp (uint32_t time_date_stamp)
 
void major_version (uint16_t major_version)
 
void minor_version (uint16_t minor_version)
 
void numberof_name_entries (uint16_t numberof_name_entries)
 
void numberof_id_entries (uint16_t numberof_id_entries)
 
void accept (Visitor &visitor) const override
 
- Public Member Functions inherited from LIEF::PE::ResourceNode
 ResourceNode (const ResourceNode &other)
 
ResourceNodeoperator= (const ResourceNode &other)
 
 ResourceNode (ResourceNode &&other)
 
ResourceNodeoperator= (ResourceNode &&other)
 
void swap (ResourceNode &other)
 
uint32_t id () const
 Integer that identifies the Type, Name, or Language ID of the entry depending on its depth in the tree.
 
const std::u16string & name () const
 Name of the entry.
 
it_childs childs ()
 Iterator on node's children.
 
it_const_childs childs () const
 
bool has_name () const
 True if the entry uses a name as ID
 
uint32_t depth () const
 Current depth of the Node in the resource tree.
 
bool is_directory () const
 True if the current entry is a ResourceDirectory.
 
bool is_data () const
 True if the current entry is a ResourceData.
 
void id (uint32_t id)
 
void name (const std::string &name)
 
void name (std::u16string name)
 
ResourceNodeadd_child (const ResourceDirectory &child)
 Add a ResourceDirectory to the current node.
 
ResourceNodeadd_child (const ResourceData &child)
 Add a ResourceData to the current node.
 
void delete_child (uint32_t id)
 Delete the node with the given id
 
void delete_child (const ResourceNode &node)
 Delete the given node from the node's children.
 
void accept (Visitor &visitor) const override
 
- Public Member Functions inherited from LIEF::Object
 Object (const Object &other)
 
Objectoperator= (const Object &other)
 
template<class T >
output_t< T > as ()
 
template<class T >
output_const_t< T > as () const
 
virtual bool operator== (const Object &other) const
 
virtual bool operator!= (const Object &other) const
 

Static Public Member Functions

static bool classof (const ResourceNode *node)
 

Additional Inherited Members

- Public Types inherited from LIEF::PE::ResourceNode
enum class  TYPE { UNKNOWN = 0 , DATA , DIRECTORY }
 Enum that identifies the type of a node in the resource tree.
 
using childs_t = std::vector<std::unique_ptr<ResourceNode>>
 
using it_childs = ref_iterator<childs_t&, ResourceNode*>
 
using it_const_childs = const_ref_iterator<const childs_t&, ResourceNode*>
 
- Public Types inherited from LIEF::Object
template<class T >
using output_t = add_pointer_t<decay_t<T>>
 
template<class T >
using output_const_t = add_pointer_t<add_const_t<decay_t<T>>>
 

Member Function Documentation

◆ accept()

void LIEF::PE::ResourceDirectory::accept ( Visitor & visitor) const
overridevirtual

Implements LIEF::Object.

◆ clone()

std::unique_ptr< ResourceNode > LIEF::PE::ResourceDirectory::clone ( ) const
inlineoverridevirtual

The documentation for this class was generated from the following file: