SMACC
Loading...
Searching...
No Matches
smacc
include
smacc
smacc_types.h
Go to the documentation of this file.
1
/*****************************************************************************************************************
2
* ReelRobotix Inc. - Software License Agreement Copyright (c) 2018
3
* Authors: Pablo Inigo Blasco, Brett Aldrich
4
*
5
******************************************************************************************************************/
6
7
#pragma once
8
9
#include <boost/statechart/transition.hpp>
10
11
namespace
smacc
12
{
13
class
ISmaccState;
14
class
ISmaccStateMachine;
15
class
ISmaccClient;
16
class
ISmaccUpdatable;
17
class
ISmaccComponent;
18
class
ISmaccClientBehavior;
19
class
SmaccClientBehavior;
20
class
SignalDetector;
21
22
class
StateReactor;
23
class
SmaccEventGenerator;
24
25
namespace
client_bases
26
{
27
class
ISmaccActionClient;
28
class
ISmaccSubscriber;
29
}
// namespace client_bases
30
31
namespace
introspection
32
{
33
class
SmaccStateMachineInfo;
34
class
SmaccStateInfo;
35
class
StateReactorHandler;
36
class
SmaccStateReactorInfo;
37
class
SmaccEventGeneratorInfo;
38
}
// namespace introspection
39
40
// ----TAGS FOR TRANSITIONS -----
41
42
namespace
default_transition_tags
43
{
44
45
// you can also use these other labels in order to have
46
// a better code readability and also to improve the visual representation
47
// in the viewer
48
struct
DEFAULT
49
{
50
};
51
52
struct
ABORT
53
{
54
};
55
struct
SUCCESS
56
{
57
};
58
struct
PREEMPT
59
{
60
};
61
struct
REJECT
62
{
63
};
64
65
struct
CONTINUELOOP
66
{
67
};
68
struct
ENDLOOP
69
{
70
};
71
72
struct
default_transition_name
:
SUCCESS
73
{
74
};
75
}
// namespace default_transition_tags
76
77
template
<
class
Event,
78
class
Destination,
79
typename
Tag =
default_transition_tags::default_transition_name
,
80
class
TransitionContext = boost::statechart::detail::no_context<Event>,
81
void (TransitionContext::*pTransitionAction)(
const
Event &) =
82
&boost::statechart::detail::no_context<Event>::no_function>
83
class
Transition
;
84
85
}
// namespace smacc
smacc::Transition
Definition:
smacc_transition.h:21
smacc
Definition:
callback_counter_semaphore.h:17
smacc::default_transition_tags::ABORT
Definition:
smacc_types.h:53
smacc::default_transition_tags::CONTINUELOOP
Definition:
smacc_types.h:66
smacc::default_transition_tags::DEFAULT
Definition:
smacc_types.h:49
smacc::default_transition_tags::ENDLOOP
Definition:
smacc_types.h:69
smacc::default_transition_tags::PREEMPT
Definition:
smacc_types.h:59
smacc::default_transition_tags::REJECT
Definition:
smacc_types.h:62
smacc::default_transition_tags::SUCCESS
Definition:
smacc_types.h:56
smacc::default_transition_tags::default_transition_name
Definition:
smacc_types.h:73
Generated by
1.9.5