• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef BOOST_STATECHART_TEST_TU_TEST_HPP_INCLUDED
2 #define BOOST_STATECHART_TEST_TU_TEST_HPP_INCLUDED
3 //////////////////////////////////////////////////////////////////////////////
4 // Copyright 2005-2006 Andreas Huber Doenni
5 // Distributed under the Boost Software License, Version 1.0. (See accompany-
6 // ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 //////////////////////////////////////////////////////////////////////////////
8 
9 
10 
11 #include <boost/statechart/event.hpp>
12 #include <boost/statechart/state_machine.hpp>
13 
14 #include <boost/config.hpp>
15 
16 #ifdef BOOST_STATECHART_TEST_DYNAMIC_LINK
17   #ifdef BOOST_STATECHART_TEST_DLL_EXPORT
18     #define BOOST_STATECHART_DECL BOOST_SYMBOL_EXPORT
19   #else
20     #define BOOST_STATECHART_DECL BOOST_SYMBOL_IMPORT
21   #endif
22 #endif
23 
24 #ifndef BOOST_STATECHART_DECL
25   #define BOOST_STATECHART_DECL
26 #endif
27 
28 
29 
30 namespace sc = boost::statechart;
31 
32 #ifdef BOOST_MSVC
33 #  pragma warning( push )
34    // class X needs to have dll-interface to be used by clients of class Y
35 #  pragma warning( disable: 4251 )
36    // non dll-interface class X used as base for dll-interface class
37 #  pragma warning( disable: 4275 )
38 #endif
39 
40 struct BOOST_STATECHART_DECL EvX : sc::event< EvX > {};
41 struct BOOST_STATECHART_DECL EvY : sc::event< EvY > {};
42 
43 struct Initial;
44 struct BOOST_STATECHART_DECL TuTest : sc::state_machine< TuTest, Initial >
45 {
46   void initiate();
47   void unconsumed_event( const sc::event_base & );
48 };
49 
50 #ifdef BOOST_MSVC
51 #  pragma warning( pop )
52 #endif
53 
54 
55 #endif
56