KSD_EXPORT_CLASSclass TSharedLibrary

A class for using shared libraries.

Public Methods

[more] TSharedLibrary(const char* name)
Initialize the shared library object with the library "name".
[more] TSharedLibrary()
Create an un-initialized shared library object
[more] ~TSharedLibrary()
Destructor
[more]void Open(const char* name)
Open a shared library.
[more]void GetSymbol(void** sym, const char* name)
Load symbol "name" and store its address in "sym"
[more]bool HasSymbol(const char* name)
Checks to see if this library contains the desired symbol
[more]void Close()
Unload a shared library
[more]const char* GetName()
Returns the name used to load the shared library


Documentation

A class for using shared libraries. Most modern systems support some form of shared library: Windows has DLL's and GNU/Linux has *.so's. This class can be used to deal with shared libraries in a platform independant way.
o TSharedLibrary(const char* name)
Initialize the shared library object with the library "name".

See Also:
Open

o TSharedLibrary()
Create an un-initialized shared library object

o ~TSharedLibrary()
Destructor

ovoid Open(const char* name)
Open a shared library. If an absolute path isn't given, Open will look in the current directory and the libksd plugins directory as well as the normal system locations (for example, under GNU/linux, using the LD_LIBRARY_PATH variable). If no library by the given name is found, Open will try the name with different extensions. This allows you to specify a platform specific extension or no extension at all (for example, "plugin.so" will find "plugin.dll"). Open can also load using libtool objects (*.la's).

ovoid GetSymbol(void** sym, const char* name)
Load symbol "name" and store its address in "sym"

obool HasSymbol(const char* name)
Checks to see if this library contains the desired symbol

ovoid Close()
Unload a shared library

oconst char* GetName()
Returns the name used to load the shared library


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.