Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:41:57

0001 // Copyright 2008 Christophe Henry
0002 // henry UNDERSCORE christophe AT hotmail DOT com
0003 // This is an extended version of the state machine available in the boost::mpl library
0004 // Distributed under the same license as the original.
0005 // Copyright for the original version:
0006 // Copyright 2005 David Abrahams and Aleksey Gurtovoy. Distributed
0007 // under the Boost Software License, Version 1.0. (See accompanying
0008 // file LICENSE_1_0.txt or copy at
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 
0011 #ifndef BOOST_MSM_COMMON_TYPES_H
0012 #define BOOST_MSM_COMMON_TYPES_H
0013 
0014 #include <boost/tuple/tuple.hpp>
0015 #include <boost/msm/common.hpp>
0016 
0017 namespace boost { namespace msm { namespace back
0018 {
0019 // used for disable_if
0020 template <int> struct dummy { dummy(int) {} };
0021 // return value for transition handling
0022 typedef enum
0023 {
0024     HANDLED_FALSE=0,
0025     HANDLED_TRUE =1,
0026     HANDLED_GUARD_REJECT=2,
0027     HANDLED_DEFERRED=4
0028 } HandledEnum;
0029 
0030 typedef HandledEnum execute_return;
0031 
0032 // source of event provided to RTC algorithm
0033 enum EventSourceEnum
0034 {
0035     EVENT_SOURCE_DEFAULT=0,
0036     EVENT_SOURCE_DIRECT=1,
0037     EVENT_SOURCE_DEFERRED=2,
0038     EVENT_SOURCE_MSG_QUEUE=4
0039 };
0040 
0041 typedef unsigned char EventSource;
0042 
0043 }}}
0044 
0045 #endif //BOOST_MSM_COMMON_TYPES_H
0046