Loading src/sled/nonstd/fsm.h +7 −14 Original line number Diff line number Diff line #ifndef SLED_SLED_NONSTD_FSM_H #define SLED_SLED_NONSTD_FSM_H #pragma once /* * Copyright (c) 2015-2021 Thomas Kemmer * Loading @@ -22,9 +26,6 @@ * SOFTWARE. */ #ifndef FSMLITE_FSM_H #define FSMLITE_FSM_H #include <cstddef> #include <type_traits> Loading @@ -32,9 +33,7 @@ #include <stdexcept> #endif namespace fsmlite { template<typename T, typename State> class Fsm; namespace sled { namespace detail { Loading Loading @@ -452,13 +451,7 @@ private: }; #endif }; }// namespace fsmlite namespace sled { template<typename T, typename State = int> class Fsm : public fsmlite::Fsm<T, State> { public: Fsm(State init_state = State()) : fsmlite::Fsm<T, State>(init_state) {} }; }// namespace sled #endif #endif// SLED_SLED_NONSTD_FSM_H src/sled/nonstd/fsm_test.cc +1 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ private: void OnReset(const ResetEvent &) {} public: friend class sled::Fsm<FSMTest, State>; using TransitionTable = table<row<State::kIdle, StartEvent, State::kStarted, &FSMTest::OnStart, &FSMTest::StartCheck>, row<State::kStarted, StopEvent, State::kEnd, &FSMTest::OnStop>, Loading Loading
src/sled/nonstd/fsm.h +7 −14 Original line number Diff line number Diff line #ifndef SLED_SLED_NONSTD_FSM_H #define SLED_SLED_NONSTD_FSM_H #pragma once /* * Copyright (c) 2015-2021 Thomas Kemmer * Loading @@ -22,9 +26,6 @@ * SOFTWARE. */ #ifndef FSMLITE_FSM_H #define FSMLITE_FSM_H #include <cstddef> #include <type_traits> Loading @@ -32,9 +33,7 @@ #include <stdexcept> #endif namespace fsmlite { template<typename T, typename State> class Fsm; namespace sled { namespace detail { Loading Loading @@ -452,13 +451,7 @@ private: }; #endif }; }// namespace fsmlite namespace sled { template<typename T, typename State = int> class Fsm : public fsmlite::Fsm<T, State> { public: Fsm(State init_state = State()) : fsmlite::Fsm<T, State>(init_state) {} }; }// namespace sled #endif #endif// SLED_SLED_NONSTD_FSM_H
src/sled/nonstd/fsm_test.cc +1 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ private: void OnReset(const ResetEvent &) {} public: friend class sled::Fsm<FSMTest, State>; using TransitionTable = table<row<State::kIdle, StartEvent, State::kStarted, &FSMTest::OnStart, &FSMTest::StartCheck>, row<State::kStarted, StopEvent, State::kEnd, &FSMTest::OnStop>, Loading