- Timestamp:
- 04/08/11 14:08:45 (14 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ServiceList.cc
r10306 r10327 734 734 const string fmt = GetFormat(cmd); 735 735 736 // Convert the user en etered data according to the format string736 // Convert the user entered data according to the format string 737 737 // into a data block which will be attached to the event 738 lout << kBlue << cmd; 739 740 const Converter conv(lout, fmt); 738 const Converter conv(lout, fmt, false); 741 739 if (!conv) 742 740 { … … 747 745 try 748 746 { 747 lout << kBlue << cmd; 749 748 const vector<char> v = conv.GetVector(str.substr(p0)); 749 lout << endl; 750 750 751 751 const int rc = DimClient::sendCommand(cmd.c_str(), (void*)v.data(), v.size()); … … 757 757 catch (const std::runtime_error &e) 758 758 { 759 lout << kRed << e.what() << endl;759 lout << endl << kRed << e.what() << endl; 760 760 return false; 761 761 } -
trunk/FACT++/src/StateMachineImp.cc
r10314 r10327 231 231 // Convert the user enetered data according to the format string 232 232 // into a data block which will be attached to the event 233 lout << kBlue << name;234 235 233 const Converter conv(lout, fmt, false); 236 234 if (!conv) … … 242 240 try 243 241 { 242 lout << kBlue << name; 244 243 const vector<char> v = conv.GetVector(str.substr(p0)); 244 lout << endl; 245 245 246 return PostEvent(*evt, v.data(), v.size()); 246 247 } 247 248 catch (const std::runtime_error &e) 248 249 { 249 lout << kRed << e.what() << endl;250 lout << endl << kRed << e.what() << endl; 250 251 } 251 252
Note:
See TracChangeset
for help on using the changeset viewer.