gusimplewhiteboard
|
Class for controlling and getting the status of FSMs. More...
#include <FSMControlStatus.hpp>
Public Member Functions | |
FSMControlStatus (FSMControlType t=FSMStatus) | |
designated constructor More... | |
FSMControlStatus (const FSMControlStatus &other) | |
copy constructor More... | |
const FSMControlStatus & | operator= (const FSMControlStatus &other) |
assignment operator More... | |
FSMControlType | command () const |
command getter More... | |
void | set_command (FSMControlType command) |
command setter More... | |
bool | get (int fsm) const |
machine status setter More... | |
void | set (int fsm) |
machine control/status setter More... | |
void | clr (int fsm) |
machine control/status clearer More... | |
void | set (int fsm, bool value) |
machine control/status setter / clearer More... | |
void | reset () |
clear all machines and reset back to status More... | |
bool | operator== (const FSMControlStatus &other) const |
comparison operator More... | |
FSMControlStatus (const std::string &names) | |
string constructor More... | |
std::string | description () const |
convert to a string More... | |
void | from_string (const std::string &str) |
convert from a string More... | |
![]() | |
ARRAY_PROPERTY (uint8_t, fsms,(sizeof(gu_simple_message))) wb_fsm_control_status(guWhiteboard | |
bit vector of FSMs and command More... | |
Class for controlling and getting the status of FSMs.
This is implemented as a bit vector with an enum for control and one bit per FSM.
Definition at line 82 of file FSMControlStatus.hpp.
|
inline |
designated constructor
Definition at line 86 of file FSMControlStatus.hpp.
References set_command().
|
inline |
copy constructor
Definition at line 89 of file FSMControlStatus.hpp.
|
inline |
|
inline |
machine control/status clearer
Definition at line 107 of file FSMControlStatus.hpp.
References CONTROLSTATUS_CLR_FSM.
Referenced by set().
|
inline |
command getter
Definition at line 95 of file FSMControlStatus.hpp.
References CONTROLSTATUS_GET_CMD.
Referenced by description(), and set_command().
|
inline |
convert to a string
Definition at line 123 of file FSMControlStatus.hpp.
References command(), CONTROLSTATUS_GET_FSM, and CONTROLSTATUS_NUM_FSMS.
|
inline |
convert from a string
Definition at line 135 of file FSMControlStatus.hpp.
References CONTROLSTATUS_BIT_SIZE, CONTROLSTATUS_SET_FSM, and set_command().
Referenced by FSMControlStatus().
|
inline |
machine status setter
Definition at line 101 of file FSMControlStatus.hpp.
References CONTROLSTATUS_GET_FSM.
|
inline |
assignment operator
Definition at line 92 of file FSMControlStatus.hpp.
|
inline |
comparison operator
Definition at line 116 of file FSMControlStatus.hpp.
|
inline |
clear all machines and reset back to status
Definition at line 113 of file FSMControlStatus.hpp.
|
inline |
machine control/status setter
Definition at line 104 of file FSMControlStatus.hpp.
References CONTROLSTATUS_SET_FSM.
|
inline |
machine control/status setter / clearer
Definition at line 110 of file FSMControlStatus.hpp.
Referenced by set().
|
inline |
command setter
Definition at line 98 of file FSMControlStatus.hpp.
References command(), and CONTROLSTATUS_SET_CMD.
Referenced by FSMControlStatus(), and from_string().