ldas-tools-al 2.6.7
Loading...
Searching...
No Matches
LDASTools::AL::SOLoader Class Reference

Dynamic library loader. More...

#include <SOLoader.hh>

Public Member Functions

 SOLoader (const std::string &Path, const std::string &LibName, int Type=SOLOADER_MANDITORY)
 Constructor.
 ~SOLoader ()
 Destructor.
function_type GetFunction (const std::string &Function)
 Retrieve a function from the dynamically loaded library.
symbol_type GetSymbol (const std::string &Symbol)
 Retrieve a symbol from the dynamically loaded library.
 SOLoader (const std::string &Path, const std::string &LibName, int Type=SOLOADER_MANDITORY)
 Constructor.
 ~SOLoader ()
 Destructor.
function_type GetFunction (const std::string &Function)
 Retrieve a function from the dynamically loaded library.
symbol_type GetSymbol (const std::string &Symbol)
 Retrieve a symbol from the dynamically loaded library.

Detailed Description

Dynamic library loader.

This allows for the abstaction of dynamic loading of a library.

Constructor & Destructor Documentation

◆ SOLoader() [1/2]

LDASTools::AL::SOLoader::SOLoader ( const std::string & Path,
const std::string & LibName,
int Type = SOLOADER_MANDITORY )

Constructor.

Parameters
[in]PathDirectory containing the dynamic library
[in]LibNameBase name of the library (no standard operating system prefix or suffix)
Returns
new instance of this object

◆ ~SOLoader() [1/2]

LDASTools::AL::SOLoader::~SOLoader ( )

Destructor.

Destroy resources associated with the object

◆ SOLoader() [2/2]

LDASTools::AL::SOLoader::SOLoader ( const std::string & Path,
const std::string & LibName,
int Type = SOLOADER_MANDITORY )

Constructor.

Parameters
[in]PathDirectory containing the dynamic library
[in]LibNameBase name of the library (no standard operating system prefix or suffix)
Returns
new instance of this object

◆ ~SOLoader() [2/2]

LDASTools::AL::SOLoader::~SOLoader ( )

Destructor.

Destroy resources associated with the object

Member Function Documentation

◆ GetFunction() [1/2]

SOLoader::function_type LDASTools::AL::SOLoader::GetFunction ( const std::string & Function)

Retrieve a function from the dynamically loaded library.

Parameters
[in]FunctionThe name of the function as it appears in the dynamic library.
Returns
Address of the function

◆ GetFunction() [2/2]

function_type LDASTools::AL::SOLoader::GetFunction ( const std::string & Function)

Retrieve a function from the dynamically loaded library.

Parameters
[in]FunctionThe name of the function as it appears in the dynamic library.
Returns
Address of the function

◆ GetSymbol() [1/2]

SOLoader::symbol_type LDASTools::AL::SOLoader::GetSymbol ( const std::string & Symbol)

Retrieve a symbol from the dynamically loaded library.

Parameters
[in]SymbolThe name of the symbol as it appears in the dynamic library.
Returns
Address of the symbol

◆ GetSymbol() [2/2]

symbol_type LDASTools::AL::SOLoader::GetSymbol ( const std::string & Symbol)

Retrieve a symbol from the dynamically loaded library.

Parameters
[in]SymbolThe name of the symbol as it appears in the dynamic library.
Returns
Address of the symbol

The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/build/include/ldastoolsal/SOLoader.hh
  • /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/src/SOLoader.hh
  • /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/src/SOLoader.cc