5#include "../global.hpp"
6#include "../string.hpp"
8#include "detail_dyn_loader.hpp"
20 inline DynLoader::DynLoader(
const String &name)
22 auto fileName = CVB_LIT(
"lib") + name + CVB_LIT(
".so");
23 handle_ = dlopen(fileName.c_str(), RTLD_NOW);
25 throw std::runtime_error(
"failed to load module");
28 inline DynLoader::~DynLoader()
33 inline void *DynLoader::LoadSymbol(
const String &name)
noexcept
35 return dlsym(handle_, name.c_str());
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
std::string String
String for wide characters or unicode characters.
Definition string.hpp:49