Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/statechart/test/UnsuppDeepHistoryTest.cpp @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 1.1 KB
Line 
1//////////////////////////////////////////////////////////////////////////////
2// Copyright 2005-2006 Andreas Huber Doenni
3// Distributed under the Boost Software License, Version 1.0. (See accompany-
4// ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5//////////////////////////////////////////////////////////////////////////////
6
7
8
9#include <boost/statechart/state_machine.hpp>
10#include <boost/statechart/simple_state.hpp>
11#include <boost/statechart/deep_history.hpp>
12
13#include <boost/mpl/list.hpp>
14
15
16
17namespace sc = boost::statechart;
18namespace mpl = boost::mpl;
19
20
21
22struct A;
23struct UnsupportedDeepHistoryTest : sc::state_machine<
24  UnsupportedDeepHistoryTest, A > {};
25
26struct B;
27struct A : sc::simple_state<
28  A, UnsupportedDeepHistoryTest, B, sc::has_deep_history > {};
29
30  struct C;
31  struct D;
32  struct B : sc::simple_state< B, A, mpl::list< C, D > > {};
33
34    struct C : sc::simple_state< C, B::orthogonal< 0 > > {};
35    struct D : sc::simple_state< D, B::orthogonal< 1 > > {};
36
37
38int main()
39{
40  UnsupportedDeepHistoryTest machine;
41  machine.initiate();
42  return 0;
43}
Note: See TracBrowser for help on using the repository browser.