Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CallBack_t< EVENT > Class Template Reference

A generic callback Interface for whenever an Arc_t of an FSA is traversed. More...

#include <fsa.H>

Inheritance diagram for CallBack_t< EVENT >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CallBack_t ()
 CallBack_t (State_t< EVENT > *n)
virtual ~CallBack_t ()
virtual int exec (const EVENT &, State_t< EVENT > *&, State_t< EVENT > *)=0
const State_t< EVENT > * next () const

Protected Attributes

State_t< EVENT > * _next

Detailed Description

template<class EVENT>
class CallBack_t< EVENT >

A generic callback Interface for whenever an Arc_t of an FSA is traversed.

The callBack function is passed the Event which triggered the Arc and the default next State of the FSA. The callBack can change the FSA's next state by assigning a different value. This class is templated so that it can be used with any Event type that the application wants.

Definition at line 106 of file fsa.H.


Constructor & Destructor Documentation

template<class EVENT>
CallBack_t< EVENT >::CallBack_t  )  [inline]
 

Definition at line 110 of file fsa.H.

template<class EVENT>
CallBack_t< EVENT >::CallBack_t State_t< EVENT > *  n  )  [inline]
 

Definition at line 111 of file fsa.H.

template<class EVENT>
virtual CallBack_t< EVENT >::~CallBack_t  )  [inline, virtual]
 

Definition at line 112 of file fsa.H.


Member Function Documentation

template<class EVENT>
virtual int CallBack_t< EVENT >::exec const EVENT &  ,
State_t< EVENT > *&  ,
State_t< EVENT > * 
[pure virtual]
 

Implemented in CallFunc_t< EVENT >, and CallMeth_t< T, EVENT >.

template<class EVENT>
const State_t<EVENT>* CallBack_t< EVENT >::next  )  const [inline]
 

Definition at line 116 of file fsa.H.

References CallBack_t< EVENT >::_next.


Member Data Documentation

template<class EVENT>
State_t<EVENT>* CallBack_t< EVENT >::_next [protected]
 

Definition at line 120 of file fsa.H.

Referenced by CallMeth_t< T, EVENT >::exec(), CallFunc_t< EVENT >::exec(), and CallBack_t< EVENT >::next().


The documentation for this class was generated from the following file:
Generated on Mon Sep 18 11:44:42 2006 for jot by  doxygen 1.4.4