Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

ResourceElement Class Reference

#include <ResourceDirectory.h>

Inheritance diagram for ResourceElement:

Inheritance graph
[legend]
List of all members.

Public Member Functions

unsigned int getElementRva () const
 Returns the RVA of the element in the file.

virtual bool isLeaf () const =0
 Indicates if the resource element is a leaf or a node.

virtual void makeValid ()=0
 Corrects erroneous valeus in the ResourceElement.

virtual ~ResourceElement ()
 Necessary virtual destructor.


Protected Member Functions

virtual int read (InputBuffer &, unsigned int, unsigned int)=0
 Reads the next resource element from the InputBuffer.

virtual void rebuild (OutputBuffer &, unsigned int &, unsigned int, const std::string &) const =0
 Writes the next resource element into the OutputBuffer.


Protected Attributes

unsigned int uiElementRva
 Stores RVA of the resource element in the file.


Detailed Description

Base class for ResourceNode and ResourceLeaf, the elements of the resource tree.
Todo:
write


Member Function Documentation

unsigned int getElementRva  )  const
 

Returns the RVA of the element in the file.

Returns the RVA of a ResourceElement. This is the RVA where the ResourceElement can be found in the file.

Returns:
RVA of the ResourceElement.


The documentation for this class was generated from the following files:
Generated on Mon Jan 17 20:50:21 2005 for PeLib by doxygen 1.3.7