18 static std::mutex mutex;
20 std::lock_guard<std::mutex> lock(mutex);
28 std::ostringstream str;
29 str <<
"/tmp/temp_dynlib_" << getpid() <<
"_" << incremental_id() <<
".so";
48 throw std::runtime_error(dlerror());
75 std::swap(fLibrary, other.fLibrary);
76 std::swap(fLibName, other.fLibName);
77 std::swap(fTempName, other.fTempName);
std::string full_path(const std::string &path)
Loads a Shared Object library.
DynamicLibrary(std::string libname_param, bool unique_name=false)
Loads a shared object library.
~DynamicLibrary()
Destructs the shared object library.
DynamicLibrary & operator=(DynamicLibrary &&other) noexcept
Move assignment operator.
void * GetSymbol(const char *symbol)
Extracts a symbol from the shared library.
void swap(DynamicLibrary &other) noexcept