Go to the documentation of this file.
65 #ifndef XSLIBRARYLOADER_H
66 #define XSLIBRARYLOADER_H
77 #define XSLIBRARYLOADER_INITIALIZER { NULL }
116 inline bool load(
const XsString& libraryName)
125 inline bool isLoaded()
const
135 inline void*
resolve(
const char* functionName)
const
142 inline void unload() noexcept
154 inline static XsString errorString()
XSTYPES_DLL_API int XsLibraryLoader_isLoaded(const XsLibraryLoader *thisp)
Check if a library is loaded.
XSTYPES_DLL_API int XsLibraryLoader_load(XsLibraryLoader *thisp, const XsString *libraryName)
Dynamically load a library.
XSTYPES_DLL_API void * XsLibraryLoader_resolve(const XsLibraryLoader *thisp, const char *functionName)
Resolve a function from the library.
ROSCPP_DECL std::string resolve(const std::string &name, bool remap=true)
The Xsens dynamic library loader base class.
struct XsLibraryLoader XsLibraryLoader
XSTYPES_DLL_API void XsLibraryLoader_getErrorString(XsString *error)
Get an error string after a failure occurred.
XSTYPES_DLL_API int XsLibraryLoader_unload(XsLibraryLoader *thisp)
Unload the loaded library.
A 0-terminated managed string of characters.