Changeset 10429 for trunk/FACT++/src/StateMachineImp.cc
- Timestamp:
- 04/20/11 16:58:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/StateMachineImp.cc
r10424 r10429 554 554 EventImp &StateMachineImp::AddTransition(int targetstate, const char *name, int s1, int s2, int s3, int s4, int s5) 555 555 { 556 return AddTransition(targetstate, name, Form("%d %d %d %d %d", s1, s2, s3, s4, s5).c_str(), ""); 556 return AddTransition(targetstate, name, 557 Tools::Form("%d %d %d %d %d", s1, s2, s3, s4, s5).c_str(), ""); 557 558 } 558 559 … … 586 587 EventImp &StateMachineImp::AddTransition(int targetstate, const char *name, const char *fmt, int s1, int s2, int s3, int s4, int s5) 587 588 { 588 return AddTransition(targetstate, name, Form("%d %d %d %d %d", s1, s2, s3, s4, s5).c_str(), fmt); 589 return AddTransition(targetstate, name, 590 Tools::Form("%d %d %d %d %d", s1, s2, s3, s4, s5).c_str(), fmt); 589 591 } 590 592 … … 701 703 { 702 704 const StateNames::const_iterator i = fStateNames.find(state); 703 return i==fStateNames.end() || i->second.first.empty() ? Form("%d", state) : i->second.first;705 return i==fStateNames.end() || i->second.first.empty() ? Tools::Form("%d", state) : i->second.first; 704 706 } 705 707 … … 737 739 { 738 740 const string &str = GetStateName(state); 739 if (str== Form("%d", state))741 if (str==Tools::Form("%d", state)) 740 742 return str; 741 return str.empty() ? Form("%d", state) : (str+Form("[%d]", state));743 return str.empty() ? Tools::Form("%d", state) : (str+Tools::Form("[%d]", state)); 742 744 } 743 745
Note:
See TracChangeset
for help on using the changeset viewer.