source: branches/FACT++_lidctrl_usb/src/StateMachine.h@ 19688

Last change on this file since 19688 was 14002, checked in by tbretz, 12 years ago
Replaced some 'const char*' with a const-refernce to a std::string
File size: 561 bytes
Line 
1#ifndef FACT_StateMachine
2#define FACT_StateMachine
3
4#include "StateMachineImp.h"
5
6class StateMachine : public StateMachineImp
7{
8protected:
9 EventImp *CreateEvent(const std::string &name, const std::string &fmt);
10
11public:
12 StateMachine(std::ostream &out, const std::string &name="") :
13 StateMachineImp(out, name)
14 {
15 }
16
17 bool ProcessCommand(const std::string &str, const char *ptr, size_t siz);
18 bool ProcessCommand(const EventImp &evt);
19 bool ProcessCommand(const std::string &str) { return ProcessCommand(str, 0, 0); }
20
21};
22
23#endif
Note: See TracBrowser for help on using the repository browser.