API Guides > ConceptRT 3.x
DynamicLibrary Class Reference

Abstraction if dynamic library mecanism. More...

Detailed Description

Abstraction if dynamic library mecanism.

+ Inheritance diagram for DynamicLibrary:

Public Member Methods

 DynamicLibrary ()
 Default constructor. More...
 
 DynamicLibrary (PCChar8 libraryPath)
 Default constructor. Load directly the librairy. More...
 
 ~DynamicLibrary ()
 Destructor. More...
 
bool Load (PCChar8 libraryPath)
 Loads. More...
 
bool Free ()
 Unloads the librairy. More...
 
void * GetProcAddress (PCChar8 entryPoint) const
 Gets the address of an entry point. More...
 

Constructor & Destructor Documentation

Default constructor.

DynamicLibrary ( PCChar8  libraryPath)

Default constructor. Load directly the librairy.

Parameters
libraryPathFull pathname of the library file.
Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.

Destructor.

Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.

Methods Documentation

bool Free ( )

Unloads the librairy.

Returns
true if it succeeds, false if it fails.
Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.
void* GetProcAddress ( PCChar8  entryPoint) const

Gets the address of an entry point.

Parameters
entryPointThe entry point.
Returns
null if it fails, else the entry point.
RT Exceptions:
RT_ERROR_DYNAMIC_LIBRARY_NOT_LOADED
Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.
bool Load ( PCChar8  libraryPath)

Loads.

Parameters
libraryPathFull pathname of the library file.
Returns
true if it succeeds, false if it fails.
Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.