Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

CDllList Class Reference

The CDllList class is a linked list node used by the CDllManager class. More...

Collaboration diagram for CDllList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CDllList ()
 The CDllList constructor sets the name to NULL as well as the dll handle and next pointer.
 ~CDllList ()
 The CDllList destructor releases the name pointer and calls delete on the next object in the list if it is non-NULL.
CDllListGetWithName (const char *n)
 The GetWithName function finds the CDllList object that has the given name.
HMODULE GetHandle () const
 The GetHandle function allows the dll handle to be accessed.

Static Public Member Functions

static CDllListNewDll (const char *n, CDllList *head)
 The NewDll function returns a new CDllList object using the name you provide to load the dll.

Private Attributes

CDllListnext
 The next node in the linked list.
char * name
 The name of the dll in this object.
HMODULE dllhandle
 The handle to the dll in this object.

Detailed Description

The CDllList class is a linked list node used by the CDllManager class.

Each CDllList object stores a handle to the dll as well as its name.

See also:
CDllManager


Member Function Documentation

HMODULE CDllList::GetHandle  )  const
 

The GetHandle function allows the dll handle to be accessed.

Returns:
the handle to the dll stored in the object.

CDllList * CDllList::GetWithName const char *  n  ) 
 

The GetWithName function finds the CDllList object that has the given name.

This function recursively checks the list, if the current object has the same name it is returned, otherwise GetWithName is called on the next object. If the end of the list is reached and it still has not been found NULL is returned.

Parameters:
n the name of the dll to be found.
Returns:
the CDllObject with that dll name or NULL if it cannot be found.
See also:
CDllManager::OpenDll()

CDllList * CDllList::NewDll const char *  n,
CDllList head
[static]
 

The NewDll function returns a new CDllList object using the name you provide to load the dll.

This function does not search to see if the dll already exists, that is up to you. Also the new CDllList object has its next member set to the head parameter, presumedly the first node in a CDllList list. Thus the head should be set to the return value upon execution so that the new object remains accessable. This function also attempts to load the dll with the name you provided, first from CentumRootpah+"Dlls\" and then from the current directory. If neither results in a successful load operation a message box is created to notify you of this fact. Even upon failure a new CDllList object is returned.

Parameters:
n the name of the new dll to be loaded, you must include the .dll extension in the name.
head the first node of the CDllList this new node will belong to.
Returns:
the new CDllList object created by this function.


The documentation for this class was generated from the following files:
Generated on Sat Apr 16 16:31:09 2005 for Centum API by  doxygen 1.4.2