roadrunner  2.6.0
Fast simulator for SBML models
rrModelSharedLibrary.h
1 #ifndef rrModelSharedLibraryH
2 #define rrModelSharedLibraryH
3 //---------------------------------------------------------------------------
4 #include "Poco/SharedLibrary.h"
5 #include "rrExporter.h"
6 #include <string>
7 
8 
9 
10 namespace rr
11 {
12 
13 using std::string;
14 using Poco::SharedLibrary;
15 
21 class RR_DECLSPEC ModelSharedLibrary
22 {
23  protected:
24  std::string mLibName;
25  std::string mPathToLib;
26  SharedLibrary mTheLib;
27 
28  public:
29  ModelSharedLibrary(const std::string& pathToLib = "");
31 
32  bool setPath(const std::string& pathTo);
33  std::string createName(const std::string& name = "");
34  std::string getName();
35  std::string getFullFileName();
36 
37  bool load();
38  bool load(const std::string& name);
39  bool unload();
40  bool isLoaded();
41  void* getSymbol(const std::string& name);
42  bool hasSymbol(const std::string& name);
43 
44 };
45 }
46 #endif
Access an actual compiled shared library (.so, .dll or .dylib) that was compiled by a ModelGenerator ...
Definition: rrModelSharedLibrary.h:22