From 923606edc1f4b7dfa068f3755441611f66c6bd26 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Thu, 17 Oct 2024 21:44:32 +0200 Subject: [PATCH] Fix build --- test/XmiFsm.hxx | 6 +++++- test/XmiFsmImpl.cxx | 4 ++++ test/XmiFsmImpl.hxx | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/test/XmiFsm.hxx b/test/XmiFsm.hxx index 4ea49b7..7c83f64 100644 --- a/test/XmiFsm.hxx +++ b/test/XmiFsm.hxx @@ -33,10 +33,14 @@ class Transition_8 : public cpp_event_framework::NextSignal { }; +class SelfTransition : public cpp_event_framework::NextSignal +{ +}; using PoolSizeCalculator = cpp_event_framework::SignalPoolElementSizeCalculator; + Transition_6, Transition_7, Transition_8, Internal, + SelfTransition>; class IXmiFsmImpl; using XmiTestBase = cpp_event_framework::Statemachine; diff --git a/test/XmiFsmImpl.cxx b/test/XmiFsmImpl.cxx index 2e29c87..0d67022 100644 --- a/test/XmiFsmImpl.cxx +++ b/test/XmiFsmImpl.cxx @@ -274,6 +274,10 @@ void XmiFsmImpl::State1OnEntry() std::cout << std::source_location::current().function_name() << "\n"; state1_on_entry_called_ = true; } +void XmiFsmImpl::State1OnExit() +{ + std::cout << std::source_location::current().function_name() << "\n"; +} void XmiFsmImpl::State2OnEntry() { std::cout << std::source_location::current().function_name() << "\n"; diff --git a/test/XmiFsmImpl.hxx b/test/XmiFsmImpl.hxx index 4829887..c2aca05 100644 --- a/test/XmiFsmImpl.hxx +++ b/test/XmiFsmImpl.hxx @@ -43,6 +43,7 @@ private: bool state1_on_entry_called_ = false; void State1OnEntry() override; + void State1OnExit() override; bool state2_on_entry_called_ = false; void State2OnEntry() override; bool state3_on_entry_called_ = false;