DSComponent


Discussion

This class provides simple methods for handling self-registering components.

Member Functions


DSComponent


public:

DSComponent (     DSHashTable * hash );
Discussion

Create a component object.

Parameter Descriptions
hash
Specifies a HashTable where components should register themselves.

DSComponent


public:

DSComponent (     DSTSHashTable * hash );
Discussion

Create a component object.

Parameter Descriptions
hash
Specifies a TSHashTable where components should register themselves.

DSComponent


public:

DSComponent (     DSList * list );
Discussion

Create a component object.

Parameter Descriptions
hash
Specifies a List where components should register themselves.

loadComponentsPrefixes


public:

int loadComponentsPrefixed (     char * dir,     char * key_symbol,     char * value_symbol,     BOOL with_prefix=TRUE );
Discussion

Registers a directory of components into the hashtable.

Parameter Descriptions
dir
Specifies the directory to be searched for components.
key_symbol
Specifies the exported symbol in the components to return the type of the component. As of 1.5.2, a negative type indicates a load failure.
value_symbol
Specifies the name of the exported symbol that should be called (by the application) and will be entered into the value field of the HashTable.
with_prefix
Specifies if symbols when loaded should be prefixed by their library name, ie., function func in library liblib.so would be liblib_func if TRUE, otherwise just func.
function result
The number of components successfully loaded.

~DSComponent


public:

~DSComponent (void);
Discussion

Destroy a Thread object. If a thread has been initiated, it is not terminated.

(Last Updated 9/24/2004)