The class ResourceChild is used to store information about a resource node.
More...
#include <ResourceDirectory.h>
The class ResourceChild is used to store information about a resource node.
◆ ResourceChild() [1/2]
PeLib::ResourceChild::ResourceChild |
( |
| ) |
|
Returns the size of a resource child.
Standard constructor. Does absolutely nothing.
◆ ResourceChild() [2/2]
◆ ~ResourceChild()
PeLib::ResourceChild::~ResourceChild |
( |
| ) |
|
◆ equalId()
bool PeLib::ResourceChild::equalId |
( |
std::uint32_t |
dwId | ) |
const |
Function which compares a resource ID to the node's resource ID.
Compares the resource child's id to the parameter dwId.
- Parameters
-
- Returns
- True, if the resource child's id equals the parameter.
◆ equalName()
bool PeLib::ResourceChild::equalName |
( |
std::string |
strName | ) |
const |
Function which compares a string to the node's resource name.
Compares the resource child's name to the parameter strName.
- Parameters
-
- Returns
- True, if the resource child's name equals the parameter.
◆ getChildOfThisChild() [1/2]
ResourceChild * PeLib::ResourceChild::getChildOfThisChild |
( |
std::size_t |
uiIndex | ) |
|
Returns a child of this child.
Returns a child of this child.
◆ getChildOfThisChild() [2/2]
const ResourceChild * PeLib::ResourceChild::getChildOfThisChild |
( |
std::size_t |
uiIndex | ) |
const |
Returns a child of this child.
◆ getName()
std::string PeLib::ResourceChild::getName |
( |
| ) |
const |
Returns the name of the node.
Returns the name of the node.
- Returns
- Name of the node.
◆ getNode() [1/2]
◆ getNode() [2/2]
◆ getNumberOfChildren()
unsigned int PeLib::ResourceChild::getNumberOfChildren |
( |
| ) |
const |
Returns the node's number of children.
Returns the node's number of children.
◆ getOffsetToData()
std::uint32_t PeLib::ResourceChild::getOffsetToData |
( |
| ) |
const |
Returns the OffsetToData value of the node.
Returns the OffsetToData value of the node.
- Returns
- OffsetToData value of the node.
◆ getOffsetToName()
std::uint32_t PeLib::ResourceChild::getOffsetToName |
( |
| ) |
const |
Returns the Name value of the node.
Returns the Name value of the node.
- Returns
- Name value of the node.
◆ hasEqual() [1/2]
bool PeLib::ResourceChild::hasEqual |
( |
const std::string & |
name | ) |
const |
|
inline |
A comparison function for searching a resource element by its name.
◆ hasEqual() [2/2]
bool PeLib::ResourceChild::hasEqual |
( |
std::uint32_t |
id | ) |
const |
|
inline |
A comparison function for searching a resource element by its ID.
◆ isNamedResource()
bool PeLib::ResourceChild::isNamedResource |
( |
| ) |
const |
Predicate that determines if a child is identified by name or by ID.
Returns true if the resource was given a name.
◆ operator<()
bool PeLib::ResourceChild::operator< |
( |
const ResourceChild & |
rc | ) |
const |
Used for sorting a node's children.
The children of a resource must be ordered in a certain way. First come the named resources in sorted order, afterwards followed the unnamed resources in sorted order.
◆ operator=()
◆ setName()
void PeLib::ResourceChild::setName |
( |
const std::string & |
strNewName | ) |
|
Sets the name of the node.
Sets the name of the node.
- Parameters
-
◆ setNode()
◆ setOffsetToData()
void PeLib::ResourceChild::setOffsetToData |
( |
std::uint32_t |
dwNewOffset | ) |
|
Sets the OffsetToData value of the node.
Sets the OffsetToData value of the node.
- Parameters
-
dwNewOffset | OffsetToData value to set. |
◆ setOffsetToName()
void PeLib::ResourceChild::setOffsetToName |
( |
std::uint32_t |
dwNewOffset | ) |
|
Sets the Name value of the node.
Sets the Name value of the node.
- Parameters
-
dwNewOffset | Name value to set. |
◆ ResourceDirectory
◆ ResourceElement
◆ ResourceLeaf
◆ ResourceNode
◆ child
A pointer to one of the node's child nodes.
◆ entry
Stores name and offset of a resource node.
The documentation for this class was generated from the following files: