build command parser
This commit is contained in:
+5
-5
@@ -4,11 +4,6 @@
|
||||
// Singleton-instance
|
||||
class StateMachine
|
||||
{
|
||||
public:
|
||||
StateMachine(const StateMachine&) = delete;
|
||||
StateMachine(StateMachine&&) = delete;
|
||||
static StateMachine& getInstance() noexcept;
|
||||
|
||||
enum class State {
|
||||
INITIALIZING,
|
||||
IDLING,
|
||||
@@ -16,6 +11,11 @@ class StateMachine
|
||||
ERROR
|
||||
};
|
||||
|
||||
public:
|
||||
StateMachine(const StateMachine&) = delete;
|
||||
StateMachine(StateMachine&&) = delete;
|
||||
static StateMachine& getInstance() noexcept;
|
||||
|
||||
State getState() const noexcept { return state; };
|
||||
String getLastError() const noexcept { return lastError; };
|
||||
// May fail if a state transition from state a to b is not valid
|
||||
|
||||
Reference in New Issue
Block a user