Changeset 13068
- Timestamp:
- 03/11/12 20:00:53 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DimServiceInfoList.cc
r12907 r13068 676 676 const string fmt = t->second.first; 677 677 678 // Avoid compiler warning of unused parameter 679 lout << flush; 680 678 681 // Convert the user entered data according to the format string 679 682 // into a data block which will be attached to the event 683 #ifndef DEBUG 684 ostringstream sout; 685 const Converter conv(sout, fmt, false); 686 #else 680 687 const Converter conv(lout, fmt, false); 688 #endif 681 689 if (!conv) 682 690 throw runtime_error("Couldn't properly parse the format... ignored."); 683 691 692 #ifdef DEBUG 684 693 lout << kBlue << cmd; 694 #endif 685 695 const vector<char> v = conv.GetVector(str.substr(p0)); 696 #ifdef DEBUG 686 697 lout << endl; 698 #endif 687 699 688 700 const int rc = DimClient::sendCommand(cmd.c_str(), (void*)v.data(), v.size()); -
trunk/FACT++/src/StateMachineImp.cc
r12126 r13068 250 250 // Convert the user entered data according to the format string 251 251 // into a data block which will be attached to the event 252 #ifndef DEBUG 253 ostringstream sout; 254 const Converter conv(sout, fmt, false); 255 #else 252 256 const Converter conv(lout, fmt, false); 257 #endif 253 258 if (!conv) 254 259 { … … 259 264 try 260 265 { 266 #ifdef DEBUG 261 267 lout << kBlue << name; 268 #endif 262 269 const vector<char> v = conv.GetVector(str.substr(p0)); 270 #ifdef DEBUG 263 271 lout << endl; 272 #endif 264 273 265 274 return PostEvent(*evt, v.data(), v.size()); … … 313 322 { 314 323 Event *event = new Event(evt, ptr, siz); 315 Debug("Posted: "+event->GetName());324 //Debug("Posted: "+event->GetName()); 316 325 PushEvent(event); 317 326 }
Note:
See TracChangeset
for help on using the changeset viewer.