ManagerState and helpers for the MeasurementManager.
More...
#include <ostream>
#include <string>
#include "sensorring/platform/SensorringExport.hpp"
Go to the source code of this file.
ManagerState and helpers for the MeasurementManager.
- Author
- EduArt Robotik GmbH
- Date
- 2024-12-25
◆ ManagerState
Health state of the sensorring state machine worker.
| Enumerator |
|---|
| Uninitialized | State machine has not been started yet.
|
| Initialized | State machine has been configured but not yet running.
|
| Running | State machine is actively executing measurement cycles.
|
| Shutdown | State machine has been stopped gracefully.
|
| Error | State machine encountered an unrecoverable error.
|
◆ operator<<()
| SENSORRING_EXPORT std::ostream & eduart::sensorring::manager::operator<< |
( |
std::ostream & | os, |
|
|
ManagerState | state ) |
|
noexcept |
Output stream operator for the ManagerState enum class members.
- Parameters
-
| [in] | os | output stream to write to |
| [in] | state | to be printed as stream |
- Returns
- Stream of the state's name written out
◆ toString()
| SENSORRING_EXPORT std::string eduart::sensorring::manager::toString |
( |
ManagerState | state | ) |
|
|
noexcept |
Function to convert the ManagerState enum class members to string.
- Parameters
-
| [in] | state | to be converted to a string |
- Returns
- Name of the state written out as string