ldas-tools-al
2.6.6
|
Dynamic library loader. More...
#include <SOLoader.hh>
Public Types | |
enum | { SOLOADER_MANDITORY, SOLOADER_OPTIONAL } |
enum | { SOLOADER_MANDITORY, SOLOADER_OPTIONAL } |
enum | { SOLOADER_MANDITORY, SOLOADER_OPTIONAL } |
typedef void * | symbol_type |
typedef void(* | function_type) (void) |
typedef void * | symbol_type |
typedef void(* | function_type) (void) |
typedef void * | symbol_type |
typedef void(* | function_type) (void) |
Public Member Functions | |
SOLoader (const std::string &Path, const std::string &LibName, int Type=SOLOADER_MANDITORY) | |
Constructor. More... | |
~SOLoader () | |
Destructor. More... | |
function_type | GetFunction (const std::string &Function) |
Retrieve a function from the dynamically loaded library. More... | |
symbol_type | GetSymbol (const std::string &Symbol) |
Retrieve a symbol from the dynamically loaded library. More... | |
SOLoader (const std::string &Path, const std::string &LibName, int Type=SOLOADER_MANDITORY) | |
Constructor. More... | |
~SOLoader () | |
Destructor. More... | |
function_type | GetFunction (const std::string &Function) |
Retrieve a function from the dynamically loaded library. More... | |
symbol_type | GetSymbol (const std::string &Symbol) |
Retrieve a symbol from the dynamically loaded library. More... | |
SOLoader (const std::string &Path, const std::string &LibName, int Type=SOLOADER_MANDITORY) | |
Constructor. More... | |
~SOLoader () | |
Destructor. More... | |
function_type | GetFunction (const std::string &Function) |
Retrieve a function from the dynamically loaded library. More... | |
symbol_type | GetSymbol (const std::string &Symbol) |
Retrieve a symbol from the dynamically loaded library. More... | |
Private Types | |
typedef void * | handle_type |
typedef void * | handle_type |
typedef void * | handle_type |
Private Member Functions | |
SOLoader (const SOLoader &Source) | |
const SOLoader & | operator= (const SOLoader &Source) |
SOLoader (const SOLoader &Source) | |
const SOLoader & | operator= (const SOLoader &Source) |
SOLoader (const SOLoader &Source) | |
const SOLoader & | operator= (const SOLoader &Source) |
Private Attributes | |
handle_type | m_handle |
Dynamic library loader.
This allows for the abstaction of dynamic loading of a library.
typedef void( * LDASTools::AL::SOLoader::function_type) (void) |
typedef void( * LDASTools::AL::SOLoader::function_type) (void) |
typedef void( * LDASTools::AL::SOLoader::function_type) (void) |
|
private |
|
private |
|
private |
typedef void* LDASTools::AL::SOLoader::symbol_type |
typedef void* LDASTools::AL::SOLoader::symbol_type |
typedef void* LDASTools::AL::SOLoader::symbol_type |
LDASTools::AL::SOLoader::SOLoader | ( | const std::string & | Path, |
const std::string & | LibName, | ||
int | Type = SOLOADER_MANDITORY |
||
) |
Constructor.
[in] | Path | Directory containing the dynamic library |
[in] | LibName | Base name of the library (no standard operating system prefix or suffix) |
LDASTools::AL::SOLoader::~SOLoader | ( | ) |
Destructor.
Destroy resources associated with the object
|
private |
LDASTools::AL::SOLoader::SOLoader | ( | const std::string & | Path, |
const std::string & | LibName, | ||
int | Type = SOLOADER_MANDITORY |
||
) |
Constructor.
[in] | Path | Directory containing the dynamic library |
[in] | LibName | Base name of the library (no standard operating system prefix or suffix) |
LDASTools::AL::SOLoader::~SOLoader | ( | ) |
Destructor.
Destroy resources associated with the object
|
private |
LDASTools::AL::SOLoader::SOLoader | ( | const std::string & | Path, |
const std::string & | LibName, | ||
int | Type = SOLOADER_MANDITORY |
||
) |
Constructor.
[in] | Path | Directory containing the dynamic library |
[in] | LibName | Base name of the library (no standard operating system prefix or suffix) |
LDASTools::AL::SOLoader::~SOLoader | ( | ) |
Destructor.
Destroy resources associated with the object
|
private |
SOLoader::function_type LDASTools::AL::SOLoader::GetFunction | ( | const std::string & | Function | ) |
Retrieve a function from the dynamically loaded library.
[in] | Function | The name of the function as it appears in the dynamic library. |
function_type LDASTools::AL::SOLoader::GetFunction | ( | const std::string & | Function | ) |
Retrieve a function from the dynamically loaded library.
[in] | Function | The name of the function as it appears in the dynamic library. |
function_type LDASTools::AL::SOLoader::GetFunction | ( | const std::string & | Function | ) |
Retrieve a function from the dynamically loaded library.
[in] | Function | The name of the function as it appears in the dynamic library. |
SOLoader::symbol_type LDASTools::AL::SOLoader::GetSymbol | ( | const std::string & | Symbol | ) |
Retrieve a symbol from the dynamically loaded library.
[in] | Symbol | The name of the symbol as it appears in the dynamic library. |
symbol_type LDASTools::AL::SOLoader::GetSymbol | ( | const std::string & | Symbol | ) |
Retrieve a symbol from the dynamically loaded library.
[in] | Symbol | The name of the symbol as it appears in the dynamic library. |
symbol_type LDASTools::AL::SOLoader::GetSymbol | ( | const std::string & | Symbol | ) |
Retrieve a symbol from the dynamically loaded library.
[in] | Symbol | The name of the symbol as it appears in the dynamic library. |
|
private |