• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1550
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

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