holoscan::gxf::GXFExtensionRegistrar
holoscan::gxf::GXFExtensionRegistrar
Class to register a GXF extension.
This class is a helper class to register a GXF extension. GXFLoadExtensionFromPointer() API is used to register the extension programmatically.
Constructors
GXFExtensionRegistrar
Construct a new GXFExtensionRegistrar object
Deleted overload 1
Construct a new GXFExtensionRegistrar object.
If tid is not provided, a random tid is generated and used to register the extension.
Parameters
The pointer to the GXF context.
The name of the extension.
A description of the extension.
The type ID of the extension to use.
Methods
is_allocated
Check if the given tid is already allocated.
Returns: true If the tid is already allocated. Otherwise, false.
Parameters
The tid to check.
The kind of the tid to check.
allocate_tid
Create a random tid that is not allocated.
Returns: The allocated tid.
Parameters
The kind of the tid to create.
add_component
Add a component to the extension.
If tid is not provided, a random tid is generated and used to register the component.
Returns: true If the component is added successfully. Otherwise, false.
Template parameters
The type of the component.
The base type of the component.
Parameters
The description of the component.
The type ID of the component to use.
add_type
Add a type to the extension.
If tid is not provided, a random tid is generated and used to register the type.
Returns: true If the type is added successfully. Otherwise, false.
Template parameters
The type to add.
Parameters
The description of the type.
The type ID of the type to use.
register_extension
Register the extension.
Returns: true If the extension is registered successfully. Otherwise, false.
Parameters
If provided, the pointer to the extension is set to this pointer.
reset
Reset the GXFExtensionRegistrar object.
If tid is not provided, a random tid is generated and used to register the extension.
Parameters
The pointer to the GXF context.
The name of the extension.
The description of the extension.
The type ID of the extension to use.
Static methods
create_random_tid
Create a random tid object.
Generate a sudo random tid using std::mt19937_64. This implementation does not guarantee that the tid is unique.
Returns: A random tid.
Types
TypeKind
Kind of the Type.