ThePEG is hosted by Hepforge, IPPP Durham
ThePEG  2.1.0
ThePEG::DynamicLoader Class Reference

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. More...
 
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.
 

Detailed Description

DynamicLoader is the general interface to the dynamic loader functions of the underlying operating system.

Currently it only works on Linux.

See also
ClassTraits
ClassDescription
DescriptionList
PersistentIStream

Definition at line 27 of file DynamicLoader.h.

Member Function Documentation

◆ load()

static bool ThePEG::DynamicLoader::load ( string  file)
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.

Returns
true if the loading succeeded, false otherwise.

The documentation for this class was generated from the following file: