You.i Engine
YiAbstractState.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_ABSTRACT_STATE_H_
3 #define _YI_ABSTRACT_STATE_H_
4 
5 #include "signal/YiSignal.h"
6 
7 class CYIString;
8 
9 namespace yi
10 {
16 namespace deprecated
17 {
18 class CYIAbstractStatePriv;
19 class CYICompoundState;
20 class CYIStateMachine;
21 
32 {
33 public:
34  virtual ~CYIAbstractState();
35 
39  CYICompoundState *GetParent() const;
43  CYIStateMachine *GetMachine() const;
47  const CYIString &GetName() const;
48 
57 
58 protected:
62  virtual void OnEntry(CYIEvent *e);
66  virtual void OnExit(CYIEvent *e);
68 
69  CYIAbstractState(CYIAbstractStatePriv *priv, CYICompoundState *parent = 0, const CYIString &name = "");
70 
71  friend class CYIState;
72  friend class CYIParallelState;
73  friend class CYIHistoryState;
74  friend class CYITransition;
76  friend class CYIAbstractStatePriv;
77 
78 private:
80 };
81 
82 } //namespace deprecated
83 
86 } //namespace yi
87 
88 #endif /* _YI_ABSTRACT_STATE_H_ */
Definition: YiAbstractSignalTransition.h:7
CYISignal StateExited
Definition: YiAbstractState.h:56
#define YI_DISALLOW_COPY_AND_ASSIGN(TypeName)
Delete the copy constructor and assignment operator (and consequently the move constructor as well) ...
Definition: YiPredef.h:114
CYIAbstractState(CYIAbstractStatePriv *priv, CYICompoundState *parent=0, const CYIString &name="")
friend class CYIAbstractStatePriv
Definition: YiAbstractState.h:76
Base class for events.
Definition: YiEvent.h:489
The base class for state types in CYIStateMachine.
Definition: YiAbstractState.h:31
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:35
A history state in the state machine.
Definition: YiHistoryState.h:38
This class defines a hierarchical state machine.
Definition: YiStateMachine.h:53
The base class for an object accessible from script source code.
Definition: YiScriptableObject.h:28
The base class for CYIState and CYIParallelState.
Definition: YiCompoundState.h:26
virtual void OnEntry(CYIEvent *e)
CYISignal StateEntered
Definition: YiAbstractState.h:52
const CYIString & GetName() const
virtual void OnExit(CYIEvent *e)
CYIStateMachine * GetMachine() const
CYICompoundState * GetParent() const
Signals and slots are a thread-safe and flexible communication framework that will allow various obje...
Definition: YiSignal.h:164
The base class for transitions between states in the state machine.
Definition: YiTransition.h:39
A parallel state in the state machine.
Definition: YiParallelState.h:22
Definition: YiAbstractSignalTransition.h:25
A basic state in the state machine.
Definition: YiState.h:23
CYIAbstractStatePriv * m_pPriv
Definition: YiAbstractState.h:67