[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1510
  • Last Modified:

Boost Statechart Examples

Can anyone point me to other than the tutorial information on Boost statecharts? Like more examples that solve other types of problems, or exercise some of the many capabilities that statecharts offer.

For example, in the boost statechart tutorial, they define events as
struct sc::event my_event : sc::event< my_event > {}  (relying on memory here -- may not be exact).
How do I add functions to the event struct? They all have {} after the declaration. Can these be "filled out" with other methods?
0
Zzoni
Asked:
Zzoni
1 Solution
 
Infinity08Commented:
>> How do I add functions to the event struct? They all have {} after the declaration. Can these be "filled out" with other methods?

Yes. Just like any normal struct in C++, you can add methods to it. There's nothing preventing you from doing that, and if it's useful for your case, then why not.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now