Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 2.63 KB

File metadata and controls

26 lines (20 loc) · 2.63 KB

class Calibration

Member values

Member name Data type Description
calibration_item uint32 Item to calibrate
calibration_parameter CalibrationParameter Parameters associated to calibration item

Member functions

Function name Return type Input type Description
calibration_item() const uint32 void Returns the current value of calibration_item. If the calibration_item is not set, returns 0.
set_calibration_item() void uint32 Sets the value of calibration_item. After calling this, calibration_item() will return value.
clear_calibration_item() void void Clears the value of calibration_item. After calling this, calibration_item() will return the empty string/empty bytes.
calibration_parameter_size() const int void Returns the number of elements currently in the field.
calibration_parameter() const const CalibrationParameter int index Returns 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 index Returns 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* void Adds 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() void void Removes all elements from the field. After calling this, calibration_parameter_size() will return zero.
calibration_parameter() const const RepeatedPtrField< CalibrationParameter>& void Returns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_calibration_parameter() RepeatedPtrField< CalibrationParameter>* void Returns 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++)