NVIDIA DeepStream SDK API Reference

6.4 Release
INFER_EXPORT_API::DlLibHandle Class Reference

Detailed Description

Helper class for dynamic loading of custom library.

Definition at line 130 of file infer_utils.h.

Public Member Functions

 DlLibHandle (const std::string &path, int mode=RTLD_LAZY)
 Constructor. More...
 
 ~DlLibHandle ()
 
bool isValid () const
 
const std::string & getPath () const
 
template<typename FuncPtr >
FuncPtr symbol (const char *func)
 
template<typename FuncPtr >
FuncPtr symbol (const std::string &func)
 

Constructor & Destructor Documentation

◆ DlLibHandle()

INFER_EXPORT_API::DlLibHandle::DlLibHandle ( const std::string &  path,
int  mode = RTLD_LAZY 
)

Constructor.

Open the shared library with the given mode.

Parameters
pathFilename of the dynamic library.
modeFlags to be passed to dlopen call.

◆ ~DlLibHandle()

INFER_EXPORT_API::DlLibHandle::~DlLibHandle ( )

Member Function Documentation

◆ getPath()

const std::string& INFER_EXPORT_API::DlLibHandle::getPath ( ) const
inline

Definition at line 152 of file infer_utils.h.

◆ isValid()

bool INFER_EXPORT_API::DlLibHandle::isValid ( ) const
inline

Definition at line 147 of file infer_utils.h.

◆ symbol() [1/2]

template<typename FuncPtr >
FuncPtr INFER_EXPORT_API::DlLibHandle::symbol ( const char *  func)
inline

Definition at line 160 of file infer_utils.h.

References InferDebug, INFER_EXPORT_API::safeStr(), and string_empty().

◆ symbol() [2/2]

template<typename FuncPtr >
FuncPtr INFER_EXPORT_API::DlLibHandle::symbol ( const std::string &  func)
inline

Definition at line 169 of file infer_utils.h.


The documentation for this class was generated from the following file: