ThePEG  1.8.0
DynamicLoader.h
1 // -*- C++ -*-
2 //
3 // DynamicLoader.h is a part of ThePEG - Toolkit for HEP Event Generation
4 // Copyright (C) 1999-2011 Leif Lonnblad
5 //
6 // ThePEG is licenced under version 2 of the GPL, see COPYING for details.
7 // Please respect the MCnet academic guidelines, see GUIDELINES for details.
8 //
9 #ifndef ThePEG_DynamicLoader_H
10 #define ThePEG_DynamicLoader_H
11 // This is the declaration of the DynamicLoader class.
12 
13 #include "ThePEG/Config/ThePEG.h"
14 
15 namespace ThePEG {
16 
28 
29 public:
30 
34  static bool loadcmd(string);
35 
42  static bool load(string file);
43 
48  static void appendPath(string);
49 
54  static void prependPath(string);
55 
59  static string lastErrorMessage;
60 
65  static void dlname(string);
66 
71  static string dlnameversion(string libs);
72 
77  static const vector<string> & allPaths();
78 
83  static const vector<string> & appendedPaths();
84 
89  static const vector<string> & prependedPaths();
90 
91 private:
92 
97  static vector<string> paths;
98 
103  static vector<string> prepaths;
104 
109  static vector<string> apppaths;
110 
115  static vector<string> defaultPaths();
116 
121  static map<string,string> versionMap;
122 
123 };
124 
125 }
126 
127 #endif /* ThePEG_DynamicLoader_H */