Boost Statechart Examples

Posted on 2009-04-22
Last Modified: 2012-05-06
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?
Question by:Zzoni
    1 Comment
    LVL 53

    Accepted Solution

    >> 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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
    Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
    The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now