holoscan::ExtensionManager
holoscan::ExtensionManager
Class to manage extensions.
This class is a helper class to manage extensions.
Constructors
ExtensionManager
Construct a new ExtensionManager object.
Parameters
The context.
Destructor
~ExtensionManager
Destroy the ExtensionManager object.
Methods
reset_context
Reset the extension manager with the context.
Parameters
The context.
refresh
Refresh the extension list.
Based on the current context, construct the internal extension list.
load_extension
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_yaml
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