DSComponent



Member Functions

DSComponent

	public:

DSComponent(DSHashTable * hash);

Create a component object.

Parameters

NameDescription
hashSpecifies a HashTable where components should register themselves.

DSComponent

	public:

DSComponent(DSTSHashTable * hash);

Create a component object.

Parameters

NameDescription
hashSpecifies a TSHashTable where components should register themselves.

DSComponent

	public:

DSComponent(DSList * list);

Create a component object.

Parameters

NameDescription
hashSpecifies a List where components should register themselves.

loadComponentsPrefixes

	public:

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

Registers a directory of components into the hashtable.

Parameters

NameDescription
dirSpecifies the directory to be searched for components.
key_symbolSpecifies 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_symbolSpecifies 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_prefixSpecifies 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.
Result: The number of components successfully loaded.

~DSComponent

	public:

~DSComponent();

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


Generated with HeaderDoc - © 2000 Apple Computer, Inc. — (Last Updated 5/10/2004)