38 #ifndef Foundation_SharedLibrary_INCLUDED 39 #define Foundation_SharedLibrary_INCLUDED 82 void load(
const std::string&
path,
int flags = 0);
101 void*
getSymbol(
const std::string& name);
108 const std::string&
getPath()
const;
113 static std::string
prefix();
119 static std::string
suffix();
125 static std::string
getOSName(
const std::string& name);
143 #endif // Foundation_SharedLibrary_INCLUDED virtual ~SharedLibrary()=default
static pthread_mutex_t mutex
static std::string prefix()
SharedLibrary & operator=(const SharedLibrary &)
bool hasSymbol(const std::string &name)
Returns true iff a library has been loaded.
static std::string getOSName(const std::string &name)
static std::string suffix()
void * getSymbol(const std::string &name)
const std::string & getPath() const
Simple class for manipulating paths on Linux/Windows/Mac OS.
void load(const std::string &path, int flags=0)
bool isLoaded() const
Unloads a shared library.
void * findSymbol(const std::string &name)