COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Static Public Member Functions | List of all members
LibLoader Class Referenceabstract

#include <LibLoader.hpp>

Inherits noncopyable.

Inherited by PosixDlopenLibLoader, and LibLoader.

Public Member Functions

 LibLoader ()
 constructor More...
 
virtual ~LibLoader ()
 virtual destructor More...
 
void load_library (const std::string &lib)
 
void unload_library (Library &lib)
 
virtual void system_load_library (const std::string &lib)=0
 
virtual void set_search_paths (const std::vector< URI > &paths)=0
 

Static Public Member Functions

static std::string type_name ()
 Gets the Class name. More...
 

Detailed Description

Class that explicit loads shared libraries independently of the operating system

Author
Tiago Quintino

Definition at line 38 of file LibLoader.hpp.

Constructor & Destructor Documentation

LibLoader ( )

constructor

Definition at line 19 of file LibLoader.cpp.

~LibLoader ( )
virtual

virtual destructor

Reimplemented in LibLoader.

Definition at line 23 of file LibLoader.cpp.

Member Function Documentation

void load_library ( const std::string &  lib)

Loads a library and initiates it

Exceptions
LibLoadingErrorif loading fails for any reason
Todo:
find a cross-platform way of storing the pointer, maybe using void*

Definition at line 29 of file LibLoader.cpp.

virtual void set_search_paths ( const std::vector< URI > &  paths)
pure virtual

class interface to add paths to search for libraries

Implemented in PosixDlopenLibLoader.

virtual void system_load_library ( const std::string &  lib)
pure virtual

class interface to load a library depending on the operating system and the library loading algorithm

Exceptions
LibLoadingErrorif loading fails for any reason

Implemented in PosixDlopenLibLoader.

static std::string type_name ( )
inlinestatic

Gets the Class name.

Definition at line 66 of file LibLoader.hpp.

void unload_library ( Library lib)

Unloads a library and initiates it

Exceptions
LibLoadingErrorif loading fails for any reason
Todo:
implement system_unload_library

Definition at line 45 of file LibLoader.cpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin