source: trunk/FACT++/src/StateMachine.h@ 10211

Last change on this file since 10211 was 10183, checked in by tbretz, 14 years ago
New import.
File size: 688 bytes
Line 
1#ifndef FACT_StateMachine
2#define FACT_StateMachine
3
4#include "StateMachineImp.h"
5
6class StateMachine : public StateMachineImp
7{
8private:
9 /// Redirect our own logging to the console
10 /// int Write(const Time &t, const char *txt, int qos=kInfo);
11
12protected:
13 EventImp *CreateEvent(int targetstate, const char *name, const char *fmt);
14
15public:
16 StateMachine(std::ostream &out, const std::string &name="") :
17 StateMachineImp(out, name)
18 {
19 }
20
21 bool ProcessCommand(const std::string &str, const char *ptr, size_t siz);
22 bool ProcessCommand(const EventImp &evt);
23 bool ProcessCommand(const std::string &str) { return ProcessCommand(str, 0, 0); }
24
25};
26
27#endif
Note: See TracBrowser for help on using the repository browser.