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

ResourceChild Class Reference

The class ResourceChild is used to store information about a resource node. More...

#include <ResourceDirectory.h>

Collaboration diagram for ResourceChild:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool equalId (dword wId) const
 Function which compares a resource ID to the node's resource ID.

bool equalName (std::string strName) const
 Function which compares a string to the node's resource name.

bool isNamedResource () const
 Predicate that determines if a child is identified by name or by ID.

bool operator< (const ResourceChild &rc) const
 Used for sorting a node's children.

ResourceChildoperator= (const ResourceChild &rhs)
 Makes a deep copy of a ResourceChild object.

 ResourceChild (const ResourceChild &rhs)
 Makes a deep copy of a ResourceChild object.

 ResourceChild ()
 Standard constructor. Does absolutely nothing.

 ~ResourceChild ()
 Deletes a ResourceChild object.


Private Attributes

ResourceElementchild
 A pointer to one of the node's child nodes.

PELIB_IMG_RES_DIR_ENTRY entry
 Stores name and offset of a resource node.


Detailed Description

The class ResourceChild is used to store information about a resource node.


Member Function Documentation

bool equalId dword  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:
dwId ID of a resource.
Returns:
True, if the resource child's id equals the parameter.

bool 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:
strName ID of a resource.
Returns:
True, if the resource child's name equals the parameter.

bool isNamedResource  )  const
 

Predicate that determines if a child is identified by name or by ID.

Returns true if the resource was given a name.

bool 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.

Here is the call graph for this function:


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