appkit  1.5.1
RoadNarrows Robotics Application Kit
StateMach.cxx File Reference

Finite State Machine implementation. More...

#include <stdio.h>
#include <stdarg.h>
#include <string>
#include <map>
#include "rnr/rnrconfig.h"
#include "rnr/log.h"
#include "rnr/appkit/StateMach.h"
#include "rnr/appkit/State.h"

Go to the source code of this file.

Macros

#define LOGTRANSITION(nCurrStateId, nEventId, nNextStateId)
 Log state transition at diagnostic level 3. More...
 

Detailed Description

Finite State Machine implementation.

LastChangedDate
2013-05-06 10:03:14 -0600 (Mon, 06 May 2013)
Rev
2907
Author
Robin Knight (robin.nosp@m..kni.nosp@m.ght@r.nosp@m.oadn.nosp@m.arrow.nosp@m.s.co.nosp@m.m)
Daniel Packard (danie.nosp@m.l@ro.nosp@m.adnar.nosp@m.rows.nosp@m..com)
Copyright
© 2012-2017. RoadNarrows LLC.
http://www.roadnarrows.com
All Rights Reserved

Definition in file StateMach.cxx.

Macro Definition Documentation

#define LOGTRANSITION (   nCurrStateId,
  nEventId,
  nNextStateId 
)
Value:
do \
{ \
if( LOGABLE(LOG_LEVEL_DIAG3) ) \
{ \
logTransition(nCurrStateId, nEventId, nNextStateId); \
} \
} while(0)

Log state transition at diagnostic level 3.

Parameters
nCurrStateIdCurrent state id.
nEventIdReceived event id.
nNextStateIdNext (new) state id.

Definition at line 78 of file StateMach.cxx.

Referenced by rnr::StateMach::run().