roo_control
API Documentation for roo_control
Loading...
Searching...
No Matches
binary_logical_state.cpp
Go to the documentation of this file.
1
#include "
roo_control/binary_logical_state.h
"
2
3
namespace
roo_control
{
4
5
roo_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
binary_logical_state.h
roo_control
Definition
binary_logical_state.cpp:3
roo_control::operator<<
roo_logging::Stream & operator<<(roo_logging::Stream &out, BinaryLogicalState state)
Streams a human-readable state name.
Definition
binary_logical_state.cpp:5
roo_control::BinaryLogicalState
BinaryLogicalState
Binary logical state used by selectors and switches.
Definition
binary_logical_state.h:8
roo_control::BINARY_STATE_HIGH
@ BINARY_STATE_HIGH
Definition
binary_logical_state.h:8
roo_control::BINARY_STATE_LOW
@ BINARY_STATE_LOW
Definition
binary_logical_state.h:8
temp_repos
roo_control
src
roo_control
binary_logical_state.cpp
Generated by
1.9.8