Go to the documentation of this file.
38 #ifndef Foundation_SharedLibrary_INCLUDED
39 #define Foundation_SharedLibrary_INCLUDED
89 void load(
const std::string& path,
int flags = 0);
106 void*
getSymbol(
const std::string& name);
111 const std::string&
getPath()
const;
117 static std::string
prefix();
123 static std::string
suffix();
128 static std::string
getOSName(
const std::string& name);
143 #endif // Foundation_SharedLibrary_INCLUDED
void load(const std::string &path, int flags=0)
virtual ~SharedLibrary()=default
SharedLibrary()
Creates a SharedLibrary object.
const std::string & getPath() const
static std::string prefix()
void * getSymbol(const std::string &name)
static pthread_mutex_t mutex
static std::string suffix()
SharedLibrary & operator=(const SharedLibrary &)
void unload()
Unloads a shared library.
void * findSymbol(const std::string &name)
static std::string getOSName(const std::string &name)
bool hasSymbol(const std::string &name)
bool isLoaded() const
Returns true iff a library has been loaded.