From 9d7509da6cb5b20c0e3b8f1677eea4c841ff28d3 Mon Sep 17 00:00:00 2001 From: Philip Manke Date: Wed, 15 Nov 2023 16:03:02 +0100 Subject: [PATCH 1/2] Add CubeExporter setting: create_calibration_directory --- interface/cuvis.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/interface/cuvis.hpp b/interface/cuvis.hpp index 7bd9ffe..4867b2e 100644 --- a/interface/cuvis.hpp +++ b/interface/cuvis.hpp @@ -315,7 +315,7 @@ namespace cuvis * */ bool add_fullscale_pan; - /** @brief Set @ref Expor ter to permisive mode (default: @ref false) + /** @brief Set @ref Exporter to permisive mode (default: @ref false) * * @copydoc cuvis_export_general_settings_t.permissive * */ @@ -396,7 +396,14 @@ namespace cuvis * @copydoc cuvis_save_args_t.max_buftime * */ std::chrono::milliseconds max_buftime; + + /** Force creation of "Calibration" directory. All references for any measurements exported will be stored there. + * + * @copydoc cuvis_save_args_t.create_calibration_directory + * */ + bool create_calibration_directory; }; + /** @brief Additional settings for exporting tiff.*/ struct TiffArgs : public GeneralExportArgs { From 10879e5bd7363b9806d1086fc0747c762c3e1ee3 Mon Sep 17 00:00:00 2001 From: Philip Manke Date: Thu, 16 Nov 2023 16:43:44 +0100 Subject: [PATCH 2/2] Add missing constructor member init --- interface/cuvis.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interface/cuvis.hpp b/interface/cuvis.hpp index 4867b2e..36fba49 100644 --- a/interface/cuvis.hpp +++ b/interface/cuvis.hpp @@ -2487,7 +2487,8 @@ namespace cuvis allow_info_file(true), soft_limit(20), hard_limit(100), - max_buftime(10000) + max_buftime(10000), + create_calibration_directory(true) {} inline SaveArgs::operator cuvis_save_args_t() const @@ -2503,6 +2504,7 @@ namespace cuvis save_args.soft_limit = soft_limit; save_args.hard_limit = hard_limit; save_args.max_buftime = max_buftime.count(); + save_args.create_calibration_directory = create_calibration_directory; return save_args; }