rllib
1
lib
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
;
265
int
stepCounter
;
266
int
cycletime
;
267
static
const
long
MAX_STEP
= 1000*1000*1000;
268
void (*
nextStep
)(
rlState
*sm);
269
void (*
lastState
)(
rlState
*sm);
270
rlThread
thread
;
271
};
272
273
#endif
274
rlState::~rlState
~rlState()
Definition:
rlstate.cpp:27
rlState::rlState
rlState()
Definition:
rlstate.cpp:18
rlThread
Definition:
rlthread.h:38
rlState::user
void * user
Definition:
rlstate.h:264
rlState
Definition:
rlstate.h:256
rlState::cycletime
int cycletime
Definition:
rlstate.h:266
rlState::lastState
void(* lastState)(rlState *sm)
Definition:
rlstate.h:269
rlthread.h
rlState::gotoState
void gotoState(void(*funcPtr)(rlState *sm))
Definition:
rlstate.cpp:31
rlState::thread
rlThread thread
Definition:
rlstate.h:270
rlState::stepCounter
int stepCounter
Definition:
rlstate.h:265
rlState::startSteps
int startSteps(int cycletime)
Definition:
rlstate.cpp:64
rlState::runSteps
int runSteps(int cycletime)
Definition:
rlstate.cpp:38
rlState::MAX_STEP
static const long MAX_STEP
Definition:
rlstate.h:267
rlState::nextStep
void(* nextStep)(rlState *sm)
Definition:
rlstate.h:268
Generated by
1.8.14