Main Page | Class List | File List | Class Members | File Members

TransitionFunctions.cpp File Reference

Example of a state machine with functions linked to transitions. More...

#include <iostream>
#include <string>
#include "fsm.h"

Include dependency graph for TransitionFunctions.cpp:

Go to the source code of this file.

Namespaces

namespace  std
namespace  FSM

Classes

class  MyState
 User state type. More...

Defines

#define FSMStateType   MyState
#define FSMEventType   string

Functions

void f1 (MyState &From, string &Event, MyState &To)
 Transition linked function.
void f2 (MyState &From, string &Event, MyState &To)
 Transition linked function.
void f3 (MyState &From, string &Event, MyState &To)
 Transition linked function.
int main (void)


Detailed Description

Example of a state machine with functions linked to transitions.

Definition in file TransitionFunctions.cpp.


Function Documentation

void f1 MyState From,
string &  Event,
MyState To
 

Transition linked function.

Parameters:
From The state machine moves from
To The state machine moves to
Event Event which caused the transition

Definition at line 68 of file TransitionFunctions.cpp.

References MyState::GetName().

Referenced by main().

Here is the call graph for this function:

void f2 MyState From,
string &  Event,
MyState To
 

Transition linked function.

Parameters:
From The state machine moves from
To The state machine moves to
Event Event which caused the transition

Definition at line 83 of file TransitionFunctions.cpp.

References MyState::GetName().

Referenced by main().

Here is the call graph for this function:

void f3 MyState From,
string &  Event,
MyState To
 

Transition linked function.

Parameters:
From The state machine moves from
To The state machine moves to
Event Event which caused the transition

Definition at line 98 of file TransitionFunctions.cpp.

References MyState::GetName().

Referenced by main().

Here is the call graph for this function:


Generated on Mon Aug 15 06:36:01 2005 for Transitions Bound Functions FSM by  doxygen 1.4.4