boost-ext / sml

C++14 State Machine library
https://boost-ext.github.io/sml
Boost Software License 1.0
1.14k stars 177 forks source link

example plant uml exporter produces ugly looking output for sml::on_entry<> #450

Open chmorgan opened 3 years ago

chmorgan commented 3 years ago

Using sml from submodule (latest master).

Using plant uml exporter from examples.

Everything looked ok and then I switched to using sml::on_entry<> and the exporter code produces really long and not so good looking output:

idle_s1_5 --> boost::ext::sml::v1_1_4::front::internal : boost::ext::sml::v1_1_4::back::on_entry<boost::ext::sml::v1_14::back::, boost::ext::sml::v1_14::back::> / circulation_state_machine::operator()() const::<lambda()>

vs. say:

circulating_s1_7 --> idle_s1_5 : stop_circulation_request

The long type looks correct, due to inheritance etc but its hard to read in the plant uml output diagram.

I'm guessing there is a way to check the type and swap out all of the stuff for sml::on_entry<> with say 'sml::on_entry<>' but I'm not sure how to fix it.

cmorganBE commented 3 years ago

Fixed with #451 merged into master.