ThePEG 2.3.0
|
DynamicLoader
is the general interface to the dynamic loader functions of the underlying operating system.
More...
#include <DynamicLoader.h>
Static Public Member Functions | |
static bool | loadcmd (string) |
The actual load command used on the current platform. | |
static bool | load (string file) |
Try to load the file given as argument. | |
static void | appendPath (string) |
Add a path to the bottom of the list of directories to seach for dynaically linkable libraries. | |
static void | prependPath (string) |
Add a path to the top of the list of directories to seach for dynaically linkable libraries. | |
static void | dlname (string) |
Insert the name of the given library with correct version numbers appended, in the corresponding map. | |
static string | dlnameversion (string libs) |
Given a list of generic library names, return the same list with appended version numbers where available. | |
static const vector< string > & | allPaths () |
Return the full list of directories to seach for dynaically linkable libraries. | |
static const vector< string > & | appendedPaths () |
Return the list of appended directories to seach for dynaically linkable libraries. | |
static const vector< string > & | prependedPaths () |
Return the list of prepended directories to seach for dynaically linkable libraries. | |
Static Public Attributes | |
static string | lastErrorMessage |
Return the last error message issued from the platforms loader. | |
Static Private Member Functions | |
static vector< string > | defaultPaths () |
Used to initialize the paths vector from the ThePEG_PATH environment. | |
Static Private Attributes | |
static vector< string > | paths |
The list of directories to seach for dynaically linkable libraries. | |
static vector< string > | prepaths |
The list of prepended directories to seach for dynaically linkable libraries. | |
static vector< string > | apppaths |
The list of appended directories to seach for dynaically linkable libraries. | |
static map< string, string > | versionMap |
Map of names of dynamic libraries with correct version numbers indexed by their generic names. | |
DynamicLoader
is the general interface to the dynamic loader functions of the underlying operating system.
Currently it only works on Linux.
Definition at line 27 of file DynamicLoader.h.
|
static |
Try to load the file given as argument.
If the filename does not begin with a '/', try to prepend the paths one at the time until success. If all fail try without prepending a path.
|
staticprivate |
The list of appended directories to seach for dynaically linkable libraries.
Definition at line 109 of file DynamicLoader.h.
|
static |
Return the last error message issued from the platforms loader.
Definition at line 59 of file DynamicLoader.h.
|
staticprivate |
The list of directories to seach for dynaically linkable libraries.
Definition at line 97 of file DynamicLoader.h.
|
staticprivate |
The list of prepended directories to seach for dynaically linkable libraries.
Definition at line 103 of file DynamicLoader.h.
|
staticprivate |
Map of names of dynamic libraries with correct version numbers indexed by their generic names.
Definition at line 121 of file DynamicLoader.h.