| Line | |
|---|
| 1 | #ifndef FACT_StateMachine
|
|---|
| 2 | #define FACT_StateMachine
|
|---|
| 3 |
|
|---|
| 4 | #include "StateMachineImp.h"
|
|---|
| 5 |
|
|---|
| 6 | class StateMachine : public StateMachineImp
|
|---|
| 7 | {
|
|---|
| 8 | private:
|
|---|
| 9 | /// Redirect our own logging to the console
|
|---|
| 10 | /// int Write(const Time &t, const char *txt, int qos=kInfo);
|
|---|
| 11 |
|
|---|
| 12 | protected:
|
|---|
| 13 | EventImp *CreateEvent(int targetstate, const char *name, const char *fmt);
|
|---|
| 14 |
|
|---|
| 15 | public:
|
|---|
| 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.