holoscan::ExtensionManager
holoscan::ExtensionManager
holoscan::ExtensionManager
Class to manage extensions.
This class is a helper class to manage extensions.
Construct a new ExtensionManager object.
Parameters
The context.
Destroy the ExtensionManager object.
Reset the extension manager with the context.
Parameters
The context.
Refresh the extension list.
Based on the current context, construct the internal extension list.
Load an extension.
This method loads an extension and stores the extension handler so that it can be unloaded when the class is destroyed.
Returns: true if the extension is loaded successfully, false otherwise.
Parameters
The file name of the extension (e.g. libmyextension.so).
If true, no error message will be printed if the extension is not found.
The environment variable names that contains the search paths for the extension. The environment variable names are separated by a comma (,). (default: “HOLOSCAN_LIB_PATH”).
Load extensions from a yaml file.
The yaml file should contain a list of extension file names under the key “extensions”.
For example:
Returns: true if the extension is loaded successfully, false otherwise.
Parameters
The yaml node.
If true, no error message will be printed if the extension is not found.
The environment variable names that contains the search paths for the extension. The environment variable names are separated by a comma (,). (default: “HOLOSCAN_LIB_PATH”).
The key in the yaml node that contains the extension file names (default: “extensions”).
Example