rllib  1
rlstate.h
Go to the documentation of this file.
1 /***************************************************************************
2  rlstate.h - description
3  -------------------
4  begin : Sat Dec 29 2012
5  copyright : (C) 2012 by R. Lehrig
6  email : lehrig@t-online.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as *
13  * published by the Free Software Foundation *
14  * *
15  ***************************************************************************/
16 #ifndef _RL_STATE_H
17 #define _RL_STATE_H
18 
19 #include <stdio.h>
20 #include <stdlib.h>
21 #include <string.h>
22 #include <ctype.h>
23 #include "rlthread.h"
24 
61 
93 
166 
171 
225 
228 
256 class rlState
257 {
258  public:
259  rlState();
260  ~rlState();
261  int startSteps(int cycletime);
262  int runSteps(int cycletime);
263  void gotoState(void (*funcPtr)(rlState *sm));
264  void *user;
267  static const long MAX_STEP = 1000*1000*1000;
268  void (*nextStep)(rlState *sm);
269  void (*lastState)(rlState *sm);
271 };
272 
273 #endif
274 
~rlState()
Definition: rlstate.cpp:27
rlState()
Definition: rlstate.cpp:18
void * user
Definition: rlstate.h:264
int cycletime
Definition: rlstate.h:266
void(* lastState)(rlState *sm)
Definition: rlstate.h:269
void gotoState(void(*funcPtr)(rlState *sm))
Definition: rlstate.cpp:31
rlThread thread
Definition: rlstate.h:270
int stepCounter
Definition: rlstate.h:265
int startSteps(int cycletime)
Definition: rlstate.cpp:64
int runSteps(int cycletime)
Definition: rlstate.cpp:38
static const long MAX_STEP
Definition: rlstate.h:267
void(* nextStep)(rlState *sm)
Definition: rlstate.h:268