You.i Engine
YiSignalEventGenerator.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_SIGNAL_EVENT_GENERATOR_H_
3 #define _YI_SIGNAL_EVENT_GENERATOR_H_
4 
8 
9 namespace yi
10 {
16 namespace deprecated
17 {
18 /*
19  * CYISignalEventGenerator: generates unique events based on signals of interest
20  */
22 {
23 public:
25  m_pSignal(pSignal),
26  m_pMachine(pMachine)
27  {
28  }
29  void slot0()
30  {
32  }
33 
34  template<typename YI_SLOT_PARAM1>
35  void slot1(YI_SLOT_PARAM1 p1)
36  {
38  }
39 
40  template<typename YI_SLOT_PARAM1, typename YI_SLOT_PARAM2>
41  void slot2(YI_SLOT_PARAM1 p1, YI_SLOT_PARAM2 p2)
42  {
44  }
45 
46  template<typename YI_SLOT_PARAM1, typename YI_SLOT_PARAM2, typename YI_SLOT_PARAM3>
47  void slot3(YI_SLOT_PARAM1 p1, YI_SLOT_PARAM2 p2, YI_SLOT_PARAM3 p3)
48  {
50  }
51 
52  template<typename YI_SLOT_PARAM1, typename YI_SLOT_PARAM2, typename YI_SLOT_PARAM3, typename YI_SLOT_PARAM4>
53  void slot4(YI_SLOT_PARAM1 p1, YI_SLOT_PARAM2 p2, YI_SLOT_PARAM3 p3, YI_SLOT_PARAM4 p4)
54  {
56  }
57 
60 };
61 
62 } //namespace deprecated
63 
66 } //namespace yi
67 
68 #endif /* _YI_SIGNAL_EVENT_GENERATOR_H_ */
Definition: YiAbstractSignalTransition.h:7
Event class for the state machine signal emit events which supports 3 slot parameters.
Definition: YiStateMachineSignalEvent.h:47
void slot1(YI_SLOT_PARAM1 p1)
Definition: YiSignalEventGenerator.h:35
void slot4(YI_SLOT_PARAM1 p1, YI_SLOT_PARAM2 p2, YI_SLOT_PARAM3 p3, YI_SLOT_PARAM4 p4)
Definition: YiSignalEventGenerator.h:53
CYISignalBase * m_pSignal
Definition: YiSignalEventGenerator.h:58
This class defines a hierarchical state machine.
Definition: YiStateMachine.h:53
Event class for the state machine signal emit events which supports 4 slot parameters.
Definition: YiStateMachineSignalEvent.h:20
void slot3(YI_SLOT_PARAM1 p1, YI_SLOT_PARAM2 p2, YI_SLOT_PARAM3 p3)
Definition: YiSignalEventGenerator.h:47
Definition: YiStateMachine.h:40
The base abstract class for CYISignal.
Definition: YiSignalBase.h:23
void PostEvent(std::unique_ptr< CYIEvent > e, YI_STATEMACHINE_PRIORITY priority=YI_STATEMACHINE_NORMAL)
void slot0()
Definition: YiSignalEventGenerator.h:29
CYIStateMachine * m_pMachine
Definition: YiSignalEventGenerator.h:59
CYISignalEventGenerator(CYISignalBase *pSignal, CYIStateMachine *pMachine)
Definition: YiSignalEventGenerator.h:24
Definition: YiSignalHandler.h:174
Event class for the state machine signal emit events which supports 1 slot parameter.
Definition: YiStateMachineSignalEvent.h:95
void slot2(YI_SLOT_PARAM1 p1, YI_SLOT_PARAM2 p2)
Definition: YiSignalEventGenerator.h:41
Event class for the state machine signal emit events which supports 2 slot parameters.
Definition: YiStateMachineSignalEvent.h:72
Event class for the state machine signal emit events which supports 0 slot parameters.
Definition: YiStateMachineSignalEvent.h:116
Definition: YiSignalEventGenerator.h:21