23 #ifndef __NVDSCUSTOMLIB_FACTORY_HPP__
24 #define __NVDSCUSTOMLIB_FACTORY_HPP__
36 return reinterpret_cast<T*
>(dlsym(handle, name));
66 createAlgoCtx = dlsym_ptr<IDSCustomLibrary*(GObject*)>(
m_libHandle,
"CreateCustomAlgoCtx");
69 throw std::runtime_error(
"createCustomAlgoCtx function not found in library");
74 throw std::runtime_error(dlerror());
77 return createAlgoCtx ? createAlgoCtx(
object) :
nullptr;