roo_control
API Documentation for roo_control
Loading...
Searching...
No Matches
binary_logical_state.cpp
Go to the documentation of this file.
2
3namespace roo_control {
4
5roo_logging::Stream& operator<<(roo_logging::Stream& out,
6 BinaryLogicalState state) {
7 switch (state) {
8 case BINARY_STATE_LOW: {
9 out << "LOW";
10 break;
11 }
12 case BINARY_STATE_HIGH: {
13 out << "HIGH";
14 break;
15 }
16 default: {
17 out << "<INVALID>";
18 break;
19 }
20 }
21 return out;
22}
23
24} // namespace roo_control
roo_logging::Stream & operator<<(roo_logging::Stream &out, BinaryLogicalState state)
Streams a human-readable state name.
BinaryLogicalState
Binary logical state used by selectors and switches.