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 //////////////////////////////////////////////////////////////////////////////
11 #include <boost/statechart/event.hpp>
12 #include <boost/statechart/state_machine.hpp>
14 #include <boost/config.hpp>
16 #ifdef BOOST_HAS_DECLSPEC
17 #ifdef BOOST_STATECHART_TEST_DYNAMIC_LINK
18 #ifdef BOOST_STATECHART_TEST_DLL_EXPORT
19 #define BOOST_STATECHART_DECL __declspec(dllexport)
21 #define BOOST_STATECHART_DECL __declspec(dllimport)
26 #ifndef BOOST_STATECHART_DECL
27 #define BOOST_STATECHART_DECL
32 namespace sc = boost::statechart;
35 # pragma warning( push )
36 // class X needs to have dll-interface to be used by clients of class Y
37 # pragma warning( disable: 4251 )
38 // non dll-interface class X used as base for dll-interface class
39 # pragma warning( disable: 4275 )
42 struct BOOST_STATECHART_DECL EvX : sc::event< EvX > {};
43 struct BOOST_STATECHART_DECL EvY : sc::event< EvY > {};
46 struct BOOST_STATECHART_DECL TuTest : sc::state_machine< TuTest, Initial >
49 void unconsumed_event( const sc::event_base & );
53 # pragma warning( pop )