From 50b1e29c9be3ab740a062bf08a6cb5239592dba4 Mon Sep 17 00:00:00 2001 From: Samuel Canadi Date: Wed, 18 Jun 2025 10:30:37 +0200 Subject: [PATCH] add component info to calibration --- interface/cuvis.hpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/interface/cuvis.hpp b/interface/cuvis.hpp index 0a3b998..d828376 100644 --- a/interface/cuvis.hpp +++ b/interface/cuvis.hpp @@ -1008,6 +1008,16 @@ namespace cuvis */ std::string get_id() const; + /** + * @brief get number of components + */ + int_t get_component_count() const; + + /** + * @brief get a components information + */ + CUVIS_COMPONENT_INFO get_component_info(int_t id) const; + /** @brief Expert: Return the current handle of the wrapper class */ CUVIS_CALIB get_handle() const; /** @brief Expert: Create a copy of the current handle of the wrapper class and return it. @@ -2358,6 +2368,20 @@ namespace cuvis return view_array; } + + inline int_t Calibration::get_component_count() const + { + int_t count; + chk(cuvis_acq_cont_get_component_count(*_calib, &count)); + return count; + } + inline CUVIS_COMPONENT_INFO Calibration::get_component_info(int_t id) const + { + CUVIS_COMPONENT_INFO info; + chk(cuvis_acq_cont_get_component_info(*_calib, id, &info)); + return info; + } + inline AcquisitionContext::~AcquisitionContext() { reset_state_change_callback(); } inline AcquisitionContext::AcquisitionContext(Calibration const& calib) : _state_poll_thread_run(false)