holoscan::DataExporter
holoscan::DataExporter
A base class to support exporting Holoscan application data for Federated Analytics.
This class will create a directory with the application name passed to the constructor. It will also create a subdirectory based on the current timestamp within the application directory.
The root directory for the application data can be specified by using environment variable HOLOSCAN_ANALYTICS_DATA_DIRECTORY. If not specified, it will default to current application directory.
Constructors
DataExporter
Destructor
~DataExporter
Methods
export_data
A pure virtual function that needs to be implemented by subclasses to export the data in required format.
Parameters
The data to be written to the CSV file.
app_name
Return the application name.
data_directory
Returns a data directory name.
cleanup_data_directory
Remove the data directory and its contents.
create_data_directory_with_timestamp
Create a data directory with the current timestamp inside the application directory.
Static methods
get_analytics_data_directory_env
Get the value of analytics data directory environment variable HOLOSCAN_ANALYTICS_DATA_DIRECTORY.
Returns: A string if the environment variable is set else it returns error code.