NVIDIA Holoscan SDK v2.2.0
Holoscan v2.2.0

Class GXFParameterAdaptor

class GXFParameterAdaptor

Public Types

using AdaptFunc = std::function<gxf_result_t(gxf_context_t context, gxf_uid_t uid, const char *key, const ArgType &arg_type, const std::any &any_value)>

Public Functions

inline AdaptFunc &get_param_handler(std::type_index index)
template<typename typeT>
inline void add_param_handler(AdaptFunc func)
inline void add_param_handler(std::type_index index, AdaptFunc func)
template<typename typeT>
inline void add_param_handler()

Public Static Functions

static GXFParameterAdaptor &get_instance()

Get the instance of GXFParameterAdaptor.

Returns

The reference of the static GXFParameterAdaptor instance.

static inline gxf_result_t set_param(gxf_context_t context, gxf_uid_t uid, const char *key, ParameterWrapper &param_wrap)
template<typename typeT>
static inline void ensure_type()

Public Static Attributes

static AdaptFunc none_param_handler = [](gxf_context_t context, gxf_uid_t uid,const char* key, constArgType& arg_type,const std::any& any_value) {(void)context;(void)uid;(void)key;(void)arg_type;(void)any_value;HOLOSCAN_LOG_ERROR("Unable to handle parameter: {}", key);return GXF_FAILURE;}

Previous Class GXFOutputContext
Next Class GXFResource
© Copyright 2022-2023, NVIDIA. Last updated on Aug 2, 2024.