holoscan::gxf::find_component_handle

Beta
View as Markdown
template <typename S>
gxf_uid_t holoscan::gxf::find_component_handle(
gxf_context_t context,
gxf_uid_t component_uid,
const char *key,
const std::string &tag,
const std::string &prefix
)

Return a component ID from the handle name.

This method parses the handle name and interprets it as either a component name in the current entity, or as a composed string of the form ‘entity_name/component_name’. This method reuses a logic from the GXF SDK.

Returns: The component ID referenced by the key.

Parameters

context
gxf_context_t

The GXF context.

component_uid
gxf_uid_t

The component ID of the component that contains the parameter.

key
const char *

The key of the parameter.

tag
const std::string &

The handle name.

prefix
const std::string &

The prefix of the component name.