NVIDIA DeepStream SDK API Reference

9.0 Release
INFER_EXPORT_API::DlLibHandle Class Reference

Detailed Description

Helper class for dynamic loading of custom library.

Definition at line 130 of file sources/libs/nvdsinferserver/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
 
 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)
 
template<typename FuncPtr >
FuncPtr symbol (const char *func)
 
template<typename FuncPtr >
FuncPtr symbol (const std::string &func)
 

Constructor & Destructor Documentation

◆ DlLibHandle() [1/2]

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() [1/2]

INFER_EXPORT_API::DlLibHandle::~DlLibHandle ( )

◆ DlLibHandle() [2/2]

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() [2/2]

INFER_EXPORT_API::DlLibHandle::~DlLibHandle ( )

Member Function Documentation

◆ getPath() [1/2]

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

Definition at line 152 of file sources/libs/nvdsinferserver/infer_utils.h.

◆ getPath() [2/2]

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

◆ isValid() [1/2]

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

Definition at line 147 of file sources/libs/nvdsinferserver/infer_utils.h.

◆ isValid() [2/2]

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

◆ symbol() [1/4]

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

◆ symbol() [2/4]

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

◆ symbol() [3/4]

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

Definition at line 169 of file sources/libs/nvdsinferserver/infer_utils.h.

◆ symbol() [4/4]

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

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