Changeset 14124 for trunk/FACT++/src/StateMachineImp.h
- Timestamp:
- 06/08/12 17:09:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/StateMachineImp.h
r14008 r14124 41 41 std::queue<Event*> fEventQueue; /// Event queue (fifo) for the received commands 42 42 43 std::mutex fMutex; /// Mutex to ensure thread-safe access to the command fifo 43 std::mutex fMutex; /// Mutex to ensure thread-safe access to the command fifo 44 std::mutex fMutexEvt; /// Mutex to ensure thread-safe access to the command fifo 44 45 45 46 bool fRunning; /// Machine is in main-loop … … 101 102 102 103 EventImp &Subscribe(const std::string &name); 104 void Unsubscribe(EventImp *evt); 103 105 104 106 /// return the current state of the machine … … 128 130 129 131 // Event handling 130 bool HasEvent(const EventImp *cmd) const;131 EventImp *FindEvent(const std::string &evt) const;132 bool HasEvent(const EventImp *cmd); 133 EventImp *FindEvent(const std::string &evt); 132 134 133 135 bool IsQueueEmpty() const { return fEventQueue.size()==0; } 134 136 135 const std::vector<EventImp*> &GetListOfEvents() const { return fListOfEvents; }136 const std::vector<std::string> GetEventNames() const;137 138 void PrintListOfEvents(std::ostream &out, const std::string &evt="") const;139 void PrintListOfEvents(const std::string &str="") const;140 141 void PrintListOfAllowedEvents(std::ostream &out) const;142 void PrintListOfAllowedEvents() const;137 //const std::vector<EventImp*> &GetListOfEvents() const { return fListOfEvents; } 138 const std::vector<std::string> GetEventNames(); 139 140 void PrintListOfEvents(std::ostream &out, const std::string &evt=""); 141 void PrintListOfEvents(const std::string &str=""); 142 143 void PrintListOfAllowedEvents(std::ostream &out); 144 void PrintListOfAllowedEvents(); 143 145 144 146 void PrintListOfStates(std::ostream &out) const;
Note:
See TracChangeset
for help on using the changeset viewer.