Proxy for an INCA calibration scalar data COM object. More...
#include <CalibrationScalarDataProxy.hpp>


Public Member Functions | |
| CalibrationScalarDataProxy (pacemaker::inca::detail::unique_com_ptr<::IDispatch > idispatch) | |
Constructs the proxy by narrowing a generic IDispatch to CalibrationScalarData_Dispatch. | |
| CalibrationScalarDataProxy (CalibrationScalarDataProxy &&)=default | |
| Move constructor transfers ownership of the COM object. | |
| CalibrationScalarDataProxy & | operator= (CalibrationScalarDataProxy &&)=default |
| Move assignment transfers ownership of the COM object. | |
| ~CalibrationScalarDataProxy () | |
| Destructor; releases the underlying COM object. | |
| auto | SetImplValue (double value) -> void |
| Sets the implementation (working-page) value of the calibration parameter. | |
| auto | ResetValueToRP () -> void |
| Resets the calibration parameter to its reference-page value. | |
Proxy for an INCA calibration scalar data COM object.
CalibrationScalarDataProxy wraps the CalibrationScalarData_Dispatch COM interface, which represents a single scalar calibration parameter (implementation value) within an INCA experiment device.
It provides two operations:
double during an experiment run.Instances are normally created by pacemaker::inca::Experiment::add_param() and stored in its internal parameter table, Direct construction requires a valid IDispatch pointer obtained from IncaOnlineExperimentProxy::GetCalibrationValueInDevice()
The class is move-only.
Definition at line 37 of file CalibrationScalarDataProxy.hpp.
|
explicit |
Constructs the proxy by narrowing a generic IDispatch to CalibrationScalarData_Dispatch.
| idispatch | Owning pointer to a generic IDispatch representing the calibration scalar data object. Ownership is transferred to the proxy. |
| std::invalid_argument | if idispatch is null. |
| std::runtime_error | if QueryInterface fails to obtain CalibrationScalarData_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 SetImplValue | ( | double | value | ) | -> void |
Sets the implementation (working-page) value of the calibration parameter.
Delegates to CalibrationScalarData_Dispatch::SetImplValue(). The change takes effect immediately in the running INCA measurement session.
| value | The new value to write to the calibration parameter. |
| auto ResetValueToRP | ( | ) | -> void |
Resets the calibration parameter to its reference-page value.
Delegates to CalibrationScalarData_Dispatch::ResetValueToRP(). This restores the parameter to the baseline value stored on the reference page, undoing any changes applied via SetImplValue().
This method is called by pacemaker::inca::Experiment::reset() on every registered parameter at the end of an experiment run to leave INCA in a clean state.