Proxy for the INCA experiment-view COM object. More...
#include <IncaExperimentViewProxy.hpp>


Public Member Functions | |
| IncaExperimentViewProxy (pacemaker::inca::detail::unique_com_ptr<::IDispatch > idispatch) | |
Contructs the proxy by narrowing a generic IDispatch to IncaExperimentView_Dispatch | |
| IncaExperimentViewProxy (IncaExperimentViewProxy &&)=default | |
| Move constructor transfers ownership of the COM object. | |
| IncaExperimentViewProxy & | operator= (IncaExperimentViewProxy &&)=default |
| Move assignment transfers ownership of the COM object. | |
| ~IncaExperimentViewProxy () | |
| Destructor; releases the underlying COM object. | |
| auto | OpenViewForExperimentDataItem (pacemaker::inca::detail::unique_com_ptr<::IDispatch > dataitem) -> void |
| Opens an INCA measurement view for the given calibration data item. | |
Proxy for the INCA experiment-view COM object.
IncaExperimentViewProxy wraps the IncaExperimentView_Dispatch COM interface, which controls the graphical measurement view displayed in the INCA workbench during an active experiment.
The primary use case is opening a view panel for a specific calibration data item so that its value can be observed in real time from the INCA GUI while an automated experiment run is in progress.
The class is move-only.
Definition at line 28 of file IncaExperimentViewProxy.hpp.
|
explicit |
Contructs the proxy by narrowing a generic IDispatch to IncaExperimentView_Dispatch
| idispatch | Owning pointer to a generic IDispatch representing the experiment-view object. Ownership is transferred to the proxy. |
| std::invalid_argument | if idispatch is null. |
| std::runtime_error | if QueryInterface fails to obtain IncaExperimentView_Dispatch |
|
default |
Move constructor transfers ownership of the COM object.
Destructor; releases the underlying COM object.
|
default |
Move assignment transfers ownership of the COM object.
| auto OpenViewForExperimentDataItem | ( | pacemaker::inca::detail::unique_com_ptr<::IDispatch > | dataitem | ) | -> void |
Opens an INCA measurement view for the given calibration data item.
Forwards the raw IDispatch* held by dataitem to the underlying COM method OpenViewForExperimentDataItem. The view is displayed inside the INCA workbench UI for the duration of the experiment.
Ownership of dataitem is consumed by this call; the pointer is moved in but only the raw address is forwarded to COM. INCA does not take permanent ownership of the pointer.
| dataitem | Owning IDispatch pointer to the calibration data item whose view should be opened. Obtain this from IncaOnlineExperimentProxy::GetCalibrationValueInDevice() |