Skip to content

Commit

Permalink
Regenerate with latest generator
Browse files Browse the repository at this point in the history
  • Loading branch information
dziegel committed Jan 25, 2024
1 parent 47fa68a commit fee5b61
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 90 deletions.
6 changes: 0 additions & 6 deletions test/generated/ScXmlTestDeclaration.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,20 @@ class ScXmlTest final : public ScXmlTestBase
static const StatePtr kInitialState;

// State State_1
static Transition State_1Handler(ImplPtr impl, Event event);
static const State kState_1;

// State State_2
static Transition State_2Handler(ImplPtr impl, Event event);
static const State kState_1State_2;

// State State_3
static Transition State_3Handler(ImplPtr impl, Event event);
static const State kState_1State_3;

// State State_4
static Transition State_4Handler(ImplPtr impl, Event event);
static const HistoryState kState_1State_4;

// State State_5
static Transition State_5Handler(ImplPtr impl, Event event);
static const State kState_1State_4State_5;

// State State_6
static Transition State_6Handler(ImplPtr impl, Event event);
static const State kState_1State_4State_6;
};
78 changes: 39 additions & 39 deletions test/generated/ScXmlTestInstance.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,32 @@

// Override the following defines according to your needs if you are not using cpp_event_framework:

#ifndef IoArHandlerMain_GET_INSTANCE_EVENT_ID
#define IoArHandlerMain_GET_INSTANCE_EVENT_ID(event_instance) event_instance->Id()
#ifndef ScXmlTest_GET_INSTANCE_EVENT_ID
#define ScXmlTest_GET_INSTANCE_EVENT_ID(event_instance) event_instance->Id()
#endif

#ifndef IoArHandlerMain_GET_STATIC_EVENT_ID
#define IoArHandlerMain_GET_STATIC_EVENT_ID(event_name) event_name::kId
#ifndef ScXmlTest_GET_STATIC_EVENT_ID
#define ScXmlTest_GET_STATIC_EVENT_ID(event_name) event_name::kId
#endif

// Initial state
const ScXmlTest::StatePtr ScXmlTest::kInitialState = &ScXmlTest::kState_1;

// State State_1
const ScXmlTest::State ScXmlTest::kState_1("State_1", &State_1Handler, nullptr, &kState_1State_2, &Impl::State1OnEntry, nullptr);
ScXmlTest::Transition ScXmlTest::State_1Handler(ImplPtr impl, Event event)
static ScXmlTest::Transition State_1Handler(ScXmlTest::ImplPtr impl, ScXmlTest::Event event)
{
(void)impl; // impl parameter is unused when there is no guard function being called in here

switch(ScXmlTest_GET_INSTANCE_EVENT_ID(event))
{
default:
return UnhandledEvent();
return ScXmlTest::UnhandledEvent();
}
}
const ScXmlTest::State ScXmlTest::kState_1("State_1", &State_1Handler, nullptr, &ScXmlTest::kState_1State_2, &ScXmlTest::Impl::State1OnEntry, nullptr);

// State State_2
const ScXmlTest::State ScXmlTest::kState_1State_2("State_1::State_2", &State_2Handler, &kState_1, nullptr, &Impl::State2OnEntry, nullptr);
ScXmlTest::Transition ScXmlTest::State_2Handler(ImplPtr impl, Event event)
static ScXmlTest::Transition State_1State_2Handler(ScXmlTest::ImplPtr impl, ScXmlTest::Event event)
{
(void)impl; // impl parameter is unused when there is no guard function being called in here

Expand All @@ -37,34 +36,34 @@ ScXmlTest::Transition ScXmlTest::State_2Handler(ImplPtr impl, Event event)
case ScXmlTest_GET_STATIC_EVENT_ID(Internal):
if (true)
{
static const Transition::ActionContainer<1> kActions = {&Impl::State2InternalAction};
return TransitionTo(kNone, kActions);
static const ScXmlTest::Transition::ActionContainer<1> kActions = {&ScXmlTest::Impl::State2InternalAction};
return ScXmlTest::TransitionTo(ScXmlTest::kNone, kActions);
}
return UnhandledEvent();
return ScXmlTest::UnhandledEvent();

case ScXmlTest_GET_STATIC_EVENT_ID(Transition_3):
if (impl->State2Transition3Guard(event))
{
static const Transition::ActionContainer<2> kActions = {&Impl::Transition3Action1, &Impl::Transition3Action2};
return TransitionTo(kState_1State_3, kActions);
static const ScXmlTest::Transition::ActionContainer<2> kActions = {&ScXmlTest::Impl::Transition3Action1, &ScXmlTest::Impl::Transition3Action2};
return ScXmlTest::TransitionTo(ScXmlTest::kState_1State_3, kActions);
}
return UnhandledEvent();
return ScXmlTest::UnhandledEvent();

case ScXmlTest_GET_STATIC_EVENT_ID(Transition_6):
if (true)
{
return TransitionTo(kState_1State_4);
return ScXmlTest::TransitionTo(ScXmlTest::kState_1State_4);
}
return UnhandledEvent();
return ScXmlTest::UnhandledEvent();

default:
return UnhandledEvent();
return ScXmlTest::UnhandledEvent();
}
}
const ScXmlTest::State ScXmlTest::kState_1State_2("State_1::State_2", &State_1State_2Handler, &ScXmlTest::kState_1, nullptr, &ScXmlTest::Impl::State2OnEntry, nullptr);

// State State_3
const ScXmlTest::State ScXmlTest::kState_1State_3("State_1::State_3", &State_3Handler, &kState_1, nullptr, &Impl::State3OnEntry, &Impl::State3OnExit);
ScXmlTest::Transition ScXmlTest::State_3Handler(ImplPtr impl, Event event)
static ScXmlTest::Transition State_1State_3Handler(ScXmlTest::ImplPtr impl, ScXmlTest::Event event)
{
(void)impl; // impl parameter is unused when there is no guard function being called in here

Expand All @@ -73,18 +72,18 @@ ScXmlTest::Transition ScXmlTest::State_3Handler(ImplPtr impl, Event event)
case ScXmlTest_GET_STATIC_EVENT_ID(Transition_7):
if (true)
{
return TransitionTo(kState_1State_4);
return ScXmlTest::TransitionTo(ScXmlTest::kState_1State_4);
}
return UnhandledEvent();
return ScXmlTest::UnhandledEvent();

default:
return UnhandledEvent();
return ScXmlTest::UnhandledEvent();
}
}
const ScXmlTest::State ScXmlTest::kState_1State_3("State_1::State_3", &State_1State_3Handler, &ScXmlTest::kState_1, nullptr, &ScXmlTest::Impl::State3OnEntry, &ScXmlTest::Impl::State3OnExit);

// State State_4
const ScXmlTest::HistoryState ScXmlTest::kState_1State_4("State_1::State_4", &State_4Handler, &kState_1, &kState_1State_4State_5, &Impl::State4OnEntry, &Impl::State4OnExit);
ScXmlTest::Transition ScXmlTest::State_4Handler(ImplPtr impl, Event event)
static ScXmlTest::Transition State_1State_4Handler(ScXmlTest::ImplPtr impl, ScXmlTest::Event event)
{
(void)impl; // impl parameter is unused when there is no guard function being called in here

Expand All @@ -93,18 +92,18 @@ ScXmlTest::Transition ScXmlTest::State_4Handler(ImplPtr impl, Event event)
case ScXmlTest_GET_STATIC_EVENT_ID(Transition_8):
if (true)
{
return TransitionTo(kState_1State_2);
return ScXmlTest::TransitionTo(ScXmlTest::kState_1State_2);
}
return UnhandledEvent();
return ScXmlTest::UnhandledEvent();

default:
return UnhandledEvent();
return ScXmlTest::UnhandledEvent();
}
}
const ScXmlTest::HistoryState ScXmlTest::kState_1State_4("State_1::State_4", &State_1State_4Handler, &ScXmlTest::kState_1, &ScXmlTest::kState_1State_4State_5, &ScXmlTest::Impl::State4OnEntry, &ScXmlTest::Impl::State4OnExit);

// State State_5
const ScXmlTest::State ScXmlTest::kState_1State_4State_5("State_1::State_4::State_5", &State_5Handler, &kState_1State_4, nullptr, nullptr, nullptr);
ScXmlTest::Transition ScXmlTest::State_5Handler(ImplPtr impl, Event event)
static ScXmlTest::Transition State_1State_4State_5Handler(ScXmlTest::ImplPtr impl, ScXmlTest::Event event)
{
(void)impl; // impl parameter is unused when there is no guard function being called in here

Expand All @@ -113,18 +112,18 @@ ScXmlTest::Transition ScXmlTest::State_5Handler(ImplPtr impl, Event event)
case ScXmlTest_GET_STATIC_EVENT_ID(Transition_3):
if (true)
{
return TransitionTo(kState_1State_4State_6);
return ScXmlTest::TransitionTo(ScXmlTest::kState_1State_4State_6);
}
return UnhandledEvent();
return ScXmlTest::UnhandledEvent();

default:
return UnhandledEvent();
return ScXmlTest::UnhandledEvent();
}
}
const ScXmlTest::State ScXmlTest::kState_1State_4State_5("State_1::State_4::State_5", &State_1State_4State_5Handler, &ScXmlTest::kState_1State_4, nullptr, nullptr, nullptr);

// State State_6
const ScXmlTest::State ScXmlTest::kState_1State_4State_6("State_1::State_4::State_6", &State_6Handler, &kState_1State_4, nullptr, nullptr, nullptr);
ScXmlTest::Transition ScXmlTest::State_6Handler(ImplPtr impl, Event event)
static ScXmlTest::Transition State_1State_4State_6Handler(ScXmlTest::ImplPtr impl, ScXmlTest::Event event)
{
(void)impl; // impl parameter is unused when there is no guard function being called in here

Expand All @@ -133,11 +132,12 @@ ScXmlTest::Transition ScXmlTest::State_6Handler(ImplPtr impl, Event event)
case ScXmlTest_GET_STATIC_EVENT_ID(Transition_4):
if (true)
{
return TransitionTo(kState_1State_4State_5);
return ScXmlTest::TransitionTo(ScXmlTest::kState_1State_4State_5);
}
return UnhandledEvent();
return ScXmlTest::UnhandledEvent();

default:
return UnhandledEvent();
return ScXmlTest::UnhandledEvent();
}
}
}
const ScXmlTest::State ScXmlTest::kState_1State_4State_6("State_1::State_4::State_6", &State_1State_4State_6Handler, &ScXmlTest::kState_1State_4, nullptr, nullptr, nullptr);
6 changes: 0 additions & 6 deletions test/generated/XmiTestDeclaration.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,20 @@ class XmiTest final : public XmiTestBase
static const StatePtr kInitialState;

// State State_1
static Transition State_1Handler(ImplPtr impl, Event event);
static const State kState_1;

// State StateWithSameName
static Transition State_1StateWithSameNameHandler(ImplPtr impl, Event event);
static const State kState_1StateWithSameName;

// State State_2
static Transition State_1State_2Handler(ImplPtr impl, Event event);
static const State kState_1State_2;

// State State_4
static Transition State_1State_4Handler(ImplPtr impl, Event event);
static const HistoryState kState_1State_4;

// State StateWithSameName
static Transition State_1State_4StateWithSameNameHandler(ImplPtr impl, Event event);
static const State kState_1State_4StateWithSameName;

// State State_5
static Transition State_1State_4State_5Handler(ImplPtr impl, Event event);
static const State kState_1State_4State_5;
};
Loading

0 comments on commit fee5b61

Please sign in to comment.