NVIDIA DeepStream SDK API Reference

6.4 Release
nvdsinferserver::IOptions Class Referenceabstract

Detailed Description

Definition at line 57 of file infer_ioptions.h.

Inheritance diagram for nvdsinferserver::IOptions:

Data Structures

struct  oType
 
struct  oType< bool >
 
struct  oType< double >
 
struct  oType< int64_t >
 
struct  oType< std::string >
 
struct  oType< uint64_t >
 
struct  oType< Value * >
 
struct  OTypeV
 

Public Member Functions

 IOptions ()=default
 
virtual ~IOptions ()=default
 
virtual bool hasValue (const std::string &key) const =0
 
virtual OptionType getType (const std::string &name) const =0
 
virtual uint32_t getCount () const =0
 
virtual std::string getKey (uint32_t idx) const =0
 
NvDsInferStatus getDouble (const std::string &name, double &v) const
 
NvDsInferStatus getInt (const std::string &name, int64_t &v) const
 
NvDsInferStatus getUInt (const std::string &name, uint64_t &v) const
 
NvDsInferStatus getString (const std::string &name, std::string &v)
 
NvDsInferStatus getBool (const std::string &name, bool &v) const
 
template<typename Obj >
NvDsInferStatus getObj (const std::string &name, Obj *&obj) const
 
template<typename Value >
NvDsInferStatus getValue (const std::string &name, Value &value) const
 
template<typename Value >
NvDsInferStatus getValueArray (const std::string &name, std::vector< Value > &values) const
 

Protected Member Functions

virtual NvDsInferStatus getValuePtr (const std::string &name, OptionType t, void *&ptr) const =0
 
virtual NvDsInferStatus getArraySize (const std::string &key, uint32_t &size) const =0
 
virtual NvDsInferStatus getRawPtrArray (const std::string &name, OptionType ot, void **ptrBase, uint32_t size) const =0
 

Constructor & Destructor Documentation

◆ IOptions()

nvdsinferserver::IOptions::IOptions ( )
default

◆ ~IOptions()

virtual nvdsinferserver::IOptions::~IOptions ( )
virtualdefault

Member Function Documentation

◆ getArraySize()

virtual NvDsInferStatus nvdsinferserver::IOptions::getArraySize ( const std::string &  key,
uint32_t &  size 
) const
protectedpure virtual

Referenced by getValueArray().

◆ getBool()

NvDsInferStatus nvdsinferserver::IOptions::getBool ( const std::string &  name,
bool &  v 
) const
inline

Definition at line 97 of file infer_ioptions.h.

◆ getCount()

virtual uint32_t nvdsinferserver::IOptions::getCount ( ) const
pure virtual

Implemented in nvdsinferserver::BufOptions.

◆ getDouble()

NvDsInferStatus nvdsinferserver::IOptions::getDouble ( const std::string &  name,
double &  v 
) const
inline

Definition at line 81 of file infer_ioptions.h.

◆ getInt()

NvDsInferStatus nvdsinferserver::IOptions::getInt ( const std::string &  name,
int64_t &  v 
) const
inline

Definition at line 85 of file infer_ioptions.h.

◆ getKey()

virtual std::string nvdsinferserver::IOptions::getKey ( uint32_t  idx) const
pure virtual

Implemented in nvdsinferserver::BufOptions.

◆ getObj()

template<typename Obj >
NvDsInferStatus nvdsinferserver::IOptions::getObj ( const std::string &  name,
Obj *&  obj 
) const
inline

Definition at line 102 of file infer_ioptions.h.

◆ getRawPtrArray()

virtual NvDsInferStatus nvdsinferserver::IOptions::getRawPtrArray ( const std::string &  name,
OptionType  ot,
void **  ptrBase,
uint32_t  size 
) const
protectedpure virtual

Referenced by getValueArray().

◆ getString()

NvDsInferStatus nvdsinferserver::IOptions::getString ( const std::string &  name,
std::string &  v 
)
inline

Definition at line 93 of file infer_ioptions.h.

◆ getType()

virtual OptionType nvdsinferserver::IOptions::getType ( const std::string &  name) const
pure virtual

Implemented in nvdsinferserver::BufOptions.

◆ getUInt()

NvDsInferStatus nvdsinferserver::IOptions::getUInt ( const std::string &  name,
uint64_t &  v 
) const
inline

Definition at line 89 of file infer_ioptions.h.

◆ getValue()

template<typename Value >
NvDsInferStatus nvdsinferserver::IOptions::getValue ( const std::string &  name,
Value &  value 
) const
inline

Definition at line 108 of file infer_ioptions.h.

References getValuePtr(), and NVDSINFER_SUCCESS.

◆ getValueArray()

template<typename Value >
NvDsInferStatus nvdsinferserver::IOptions::getValueArray ( const std::string &  name,
std::vector< Value > &  values 
) const
inline

Definition at line 122 of file infer_ioptions.h.

References getArraySize(), getRawPtrArray(), and NVDSINFER_SUCCESS.

◆ getValuePtr()

virtual NvDsInferStatus nvdsinferserver::IOptions::getValuePtr ( const std::string &  name,
OptionType  t,
void *&  ptr 
) const
protectedpure virtual

Referenced by getValue().

◆ hasValue()

virtual bool nvdsinferserver::IOptions::hasValue ( const std::string &  key) const
pure virtual

Implemented in nvdsinferserver::BufOptions.


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