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