NVIDIA Holoscan SDK v3.0.0

Class ResourceWrapper

Base Type

  • public nvidia::gxf::Component

class ResourceWrapper : public nvidia::gxf::Component

Class to wrap a Resource to interface with the GXF framework.

Public Functions

ResourceWrapper()
virtual ~ResourceWrapper() = default
virtual const char *holoscan_typename() const = 0

Get the type name of the Resource.

std::shared_ptr<Resource> resource() const

Get the Holoscan Resource.

gxf_result_t initialize() override

Create and initialize the Resource.

gxf_result_t deinitialize() override

Destroy the Resource and free resources.

gxf_result_t registerInterface(nvidia::gxf::Registrar *registrar) override

Register the Resource’s parameters with the GXF framework.

Protected Attributes

std::shared_ptr<Resource> res_

The Resource to wrap.

FragmentWrapper fragment_

The fragment for the Resource.

std::list<std::shared_ptr<CommonGXFParameter>> parameters_

The parameters for the GXF Component.

Previous Class OperatorWrapper
Next Class GXFComponentResource
© Copyright 2022-2025, NVIDIA. Last updated on Mar 12, 2025.