38#ifndef Foundation_SharedLibrary_INCLUDED
39#define Foundation_SharedLibrary_INCLUDED
90 void load(
const std::string& path,
int flags = 0);
107 void*
getSymbol(
const std::string& name);
112 const std::string&
getPath()
const;
118 static std::string
prefix();
124 static std::string
suffix();
129 static std::string
getOSName(
const std::string& name);
137 void* findSymbol(
const std::string& name);
140 void* _handle =
nullptr;
Definition: shared_library.h:51
bool hasSymbol(const std::string &name)
SharedLibrary(const std::string &path, int flags=0)
void load(const std::string &path, int flags=0)
void * getSymbol(const std::string &name)
bool isLoaded() const
Returns true iff a library has been loaded.
static std::string suffix()
virtual ~SharedLibrary()=default
SharedLibrary()
Creates a SharedLibrary object.
static std::string prefix()
static std::string getOSName(const std::string &name)
const std::string & getPath() const
Flags
Definition: shared_library.h:54
@ SHLIB_GLOBAL
Definition: shared_library.h:59
@ SHLIB_LOCAL
Definition: shared_library.h:68
void unload()
Unloads a shared library.
Definition: action_node.h:24