holoscan::gxf::ComponentInfo

Beta
View as Markdown

A class that encapsulates the information about a GXF component.

This class provides methods to access various properties of a GXF component, such as its receiver and transmitter TIDs, parameter keys, parameter infos, etc.

#include <holoscan/gxf/gxf_component_info.hpp>

Constructors

ComponentInfo

holoscan::gxf::ComponentInfo::ComponentInfo(
gxf_context_t context,
gxf_tid_t tid
)

Construct a new component info object.

Parameters

context
gxf_context_t

The GXF context.

tid
gxf_tid_t

The TID of the component.

Destructor

~ComponentInfo

holoscan::gxf::ComponentInfo::~ComponentInfo()

Destroy the component info object.


Methods

receiver_tid

gxf_tid_t holoscan::gxf::ComponentInfo::receiver_tid() const

Get the receiver TID of the component.

Returns: The receiver TID.

transmitter_tid

gxf_tid_t holoscan::gxf::ComponentInfo::transmitter_tid() const

Get the transmitter TID of the component.

Returns: The transmitter TID.

component_info

const gxf_component_info_t & holoscan::gxf::ComponentInfo::component_info() const

Get the component info.

Returns: The component info.

parameter_keys

const std::vector<const char *> & holoscan::gxf::ComponentInfo::parameter_keys() const

Get the parameter keys of the component.

Returns: The parameter keys.

parameter_infos

const std::vector<gxf_parameter_info_t> & holoscan::gxf::ComponentInfo::parameter_infos() const

Get the parameter infos of the component.

Returns: The parameter infos.

parameter_info_map

const std::unordered_map<std::string, gxf_parameter_info_t> & holoscan::gxf::ComponentInfo::parameter_info_map() const

Get the parameter info map of the component.

Returns: The parameter info map.

receiver_parameters

const std::vector<const char *> & holoscan::gxf::ComponentInfo::receiver_parameters() const

Get the receiver parameters of the component.

Returns: The receiver parameters.

transmitter_parameters

const std::vector<const char *> & holoscan::gxf::ComponentInfo::transmitter_parameters() const

Get the transmitter parameters of the component.

Returns: The transmitter parameters.

normal_parameters

const std::vector<const char *> & holoscan::gxf::ComponentInfo::normal_parameters() const

Get the normal parameters of the component.

Returns: The normal parameters.


Static methods

get_arg_type

static ArgType holoscan::gxf::ComponentInfo::get_arg_type(
const gxf_parameter_info_t &param_info
)

Get the arg type object.

Returns the Holoscan argument type for the given GXF parameter info.

Returns: The argument type of the parameter.

Parameters

param_info
const gxf_parameter_info_t &

The GXF parameter info.


Member variables

NameTypeDescription
MAX_PARAM_COUNT static constexprintMaximum number of parameters a component can have.
gxf_context_gxf_context_tThe GXF context.
component_tid_gxf_tid_tThe TID of the component.
component_info_gxf_component_info_tThe component info.
parameter_keys_std::vector< const char * >The parameter keys.
parameter_infos_std::vector< gxf_parameter_info_t >The parameter infos.
parameter_info_map_std::unordered_map< std::string, gxf_parameter_info_t >The parameter info map.
receiver_parameters_std::vector< const char * >The receiver parameters.
transmitter_parameters_std::vector< const char * >The transmitter parameters.
normal_parameters_std::vector< const char * >The normal parameters.