#include <ResourceDirectory.h>
Inheritance diagram for ResourceNode:
Public Member Functions | |
void | addChild () |
Adds another child to node. | |
dword | getCharacteristics () const |
Returns the node's Characteristics value. | |
ResourceElement * | getChild (unsigned int uiIndex) |
Returns a node's child. | |
std::string | getChildName (unsigned int uiIndex) const |
Returns the name of one of the node's children. | |
word | getMajorVersion () const |
Returns the node's MajorVersion value. | |
word | getMinorVersion () const |
Returns the node's MinorVersion value. | |
unsigned int | getNumberOfChildren () const |
Returns the node's number of children. | |
word | getNumberOfIdEntries () const |
Returns the node's NumberOfIdEntries value. | |
word | getNumberOfNamedEntries () const |
Returns the node's NumberOfNamedEntries value. | |
dword | getOffsetToChildData (unsigned int uiIndex) const |
Returns the OffsetToData value of one of the node's children. | |
dword | getOffsetToChildName (unsigned int uiIndex) const |
Returns the Name value of one of the node's children. | |
dword | getTimeDateStamp () const |
Returns the node's TimeDateStamp value. | |
bool | isLeaf () const |
Indicates if the resource element is a leaf or a node. | |
void | makeValid () |
Corrects erroneous valeus in the ResourceNode. | |
void | removeChild (unsigned int uiIndex) |
Removes a node's child. | |
void | setCharacteristics (dword value) |
Sets the node's Characteristics value. | |
void | setChildName (unsigned int uiIndex, const std::string &strNewName) |
Sets the name of one of the node's children. | |
void | setMajorVersion (word value) |
Sets the node's MajorVersion value. | |
void | setMinorVersion (word value) |
Sets the node's MinorVersion value. | |
void | setNumberOfIdEntries (word value) |
Sets the node's NumberOfIdEntries value. | |
void | setNumberOfNamedEntries (word value) |
Sets the node's NumberOfNamedEntries value. | |
void | setOffsetToChildData (unsigned int uiIndex, dword dwNewOffset) |
Sets the OffsetToData value of one of the node's children. | |
void | setOffsetToChildName (unsigned int uiIndex, dword dwNewOffset) |
Sets the Name value of one of the node's children. | |
void | setTimeDateStamp (dword value) |
Sets the node's TimeDateStamp value. | |
Protected Member Functions | |
int | read (InputBuffer &inpBuffer, unsigned int uiOffset, unsigned int rva) |
Reads the next resource node. | |
void | rebuild (OutputBuffer &, unsigned int &uiOffset, unsigned int uiRva, const std::string &) const |
Writes the next resource node into the OutputBuffer. | |
Private Attributes | |
std::vector< ResourceChild > | children |
The node's children. | |
PELIB_IMAGE_RESOURCE_DIRECTORY | header |
The node's header. Equivalent to IMAGE_RESOURCE_DIRECTORY from the Win32 API. |
|
Adds another child to node. Adds another child to the current node. |
|
Returns the node's Characteristics value. Returns the Characteristics value of the node.
|
|
Returns a node's child. Returns a node's child.
|
|
Returns the name of one of the node's children. Returns the name of a child.
|
|
Returns the node's MajorVersion value. Returns the MajorVersion value of the node.
|
|
Returns the node's MinorVersion value. Returns the MinorVersion value of the node.
|
|
Returns the node's number of children. Returns the number of children of the current node. Note that this number is the number of defined children, not the value from the header.
|
|
Returns the node's NumberOfIdEntries value. Returns the NumberOfIdEntries value of the node.
|
|
Returns the node's NumberOfNamedEntries value. Returns the NumberOfNamedEntries value of the node.
|
|
Returns the OffsetToData value of one of the node's children. Returns the OffsetToData value of a child.
|
|
Returns the Name value of one of the node's children. Returns the Name value of a child.
|
|
Returns the node's TimeDateStamp value. Returns the TimeDateStamp value of the node.
|
|
Indicates if the resource element is a leaf or a node. Checks if a ResourceElement is a leaf or not.
Implements ResourceElement. |
|
Corrects erroneous valeus in the ResourceNode. Sorts the node's children and corrects the node's header. Implements ResourceElement. |
|
Reads the next resource node. Reads the next resource node from the InputBuffer.
Implements ResourceElement. Here is the call graph for this function: |
|
Writes the next resource node into the OutputBuffer. Rebuilds the current resource node.
Implements ResourceElement. |
|
Removes a node's child. Removes a child from the current node.
|
|
Sets the node's Characteristics value. Sets the Characteristics value of the node.
|
|
Sets the name of one of the node's children. Sets the name of a child.
|
|
Sets the node's MajorVersion value. Sets the MajorVersion value of the node.
|
|
Sets the node's MinorVersion value. Sets the MinorVersion value of the node.
|
|
Sets the node's NumberOfIdEntries value. Sets the NumberOfIdEntries value of the node.
|
|
Sets the node's NumberOfNamedEntries value. Sets the NumberOfNamedEntries value of the node.
|
|
Sets the OffsetToData value of one of the node's children. Sets the OffsetToData value of a child.
|
|
Sets the Name value of one of the node's children. Sets the Name value of a child.
|
|
Sets the node's TimeDateStamp value. Sets the TimeDateStamp value of the node.
|