class Calibration

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
calibration_itemuint32Item to calibrate
calibration_parameterCalibrationParameterParameters associated to calibration item

Member functions

Function nameReturn typeInput typeDescription
calibration_item() constuint32voidReturns the current value of calibration_item. If the calibration_item is not set, returns 0.
set_calibration_item()voiduint32Sets the value of calibration_item. After calling this, calibration_item() will return value.
clear_calibration_item()voidvoidClears the value of calibration_item. After calling this, calibration_item() will return the empty string/empty bytes.
calibration_parameter_size() constintvoidReturns the number of elements currently in the field.
calibration_parameter() constconst CalibrationParameterint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, calibration_parameter_size()) yields undefined behavior.
mutable_calibration_parameter()CalibrationParameter*int indexReturns a pointer to the mutable CalibrationParameter object that stores the value of the element at the given zero-based index. Calling this method with index outside of [0, calibration_parameter_size()) yields undefined behavior.
add_calibration_parameter()CalibrationParameter*voidAdds a new element and returns a pointer to it. The returned CalibrationParameter is mutable and will have none of its fields set (i.e. it will be identical to a newly-allocated CalibrationParameter).
clear_calibration_parameter()voidvoidRemoves all elements from the field. After calling this, calibration_parameter_size() will return zero.
calibration_parameter() constconst RepeatedPtrField< CalibrationParameter>&voidReturns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_calibration_parameter()RepeatedPtrField< CalibrationParameter>*voidReturns a pointer to the underlying mutable RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.

Parent topic: DeviceConfig (C++)