Changeset 14005 for trunk/FACT++/src
- Timestamp:
- 05/31/12 17:02:48 (12 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventImp.cc
r13908 r14005 149 149 //! no real consistency check is done. 150 150 // 151 void EventImp::AddAllowedStates(const char *states)151 void EventImp::AddAllowedStates(const string &states) 152 152 { 153 153 stringstream stream(states); -
trunk/FACT++/src/EventImp.h
r13830 r14005 44 44 // Handling of the states 45 45 void AddAllowedState(int state); 46 void AddAllowedStates(const char *states);46 void AddAllowedStates(const std::string &states); 47 47 48 48 bool IsStateAllowed(int state) const; -
trunk/FACT++/src/StateMachineImp.cc
r14002 r14005 503 503 //! true if the event was found, false otherwise 504 504 // 505 EventImp *StateMachineImp::FindEvent(const st d::string &evt) const505 EventImp *StateMachineImp::FindEvent(const string &evt) const 506 506 { 507 507 // Find the command from the list of commands and queue it … … 537 537 //! received commands is properly extracted. No check is done. 538 538 // 539 EventImp &StateMachineImp::AddEvent(const char *name, const char *states, const char *fmt)539 EventImp &StateMachineImp::AddEvent(const string &name, const string &states, const string &fmt) 540 540 { 541 541 EventImp *evt = CreateEvent(name, fmt); … … 569 569 //! by this command. 570 570 // 571 EventImp &StateMachineImp::AddEvent(const char *name, int s1, int s2, int s3, int s4, int s5)571 EventImp &StateMachineImp::AddEvent(const string &name, int s1, int s2, int s3, int s4, int s5) 572 572 { 573 573 ostringstream str; 574 574 str << s1 << ' ' << s2 << ' ' << s3 << ' ' << s4 << ' ' << s5; 575 return AddEvent(name, str.str() .c_str(), "");575 return AddEvent(name, str.str(), ""); 576 576 } 577 577 … … 597 597 //! by this command. 598 598 // 599 EventImp &StateMachineImp::AddEvent(const char *name, const char *fmt, int s1, int s2, int s3, int s4, int s5)599 EventImp &StateMachineImp::AddEvent(const string &name, const string &fmt, int s1, int s2, int s3, int s4, int s5) 600 600 { 601 601 ostringstream str; 602 602 str << s1 << ' ' << s2 << ' ' << s3 << ' ' << s4 << ' ' << s5; 603 return AddEvent(name, str.str() .c_str(), fmt);603 return AddEvent(name, str.str(), fmt); 604 604 } 605 605 -
trunk/FACT++/src/StateMachineImp.h
r14002 r14005 81 81 virtual std::string SetCurrentState(int state, const char *txt="", const std::string &cmd=""); 82 82 83 EventImp &AddEvent(const char *name, const char *states, const char *fmt);84 EventImp &AddEvent(const char *name, int s1=-1, int s2=-1, int s3=-1, int s4=-1, int s5=-1);85 EventImp &AddEvent(const char *name, const char *fmt, int s1=-1, int s2=-1, int s3=-1, int s4=-1, int s5=-1);83 EventImp &AddEvent(const std::string &name, const std::string &states, const std::string &fmt); 84 EventImp &AddEvent(const std::string &name, int s1=-1, int s2=-1, int s3=-1, int s4=-1, int s5=-1); 85 EventImp &AddEvent(const std::string &name, const std::string &fmt, int s1=-1, int s2=-1, int s3=-1, int s4=-1, int s5=-1); 86 86 87 87 virtual void AddStateName(const int state, const std::string &name, const std::string &doc="");
Note:
See TracChangeset
for help on using the changeset viewer.