Changeset 11481 for trunk/FACT++/src/mcp.cc
- Timestamp:
- 07/20/11 08:03:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/mcp.cc
r11480 r11481 1 #include <boost/bind.hpp>2 3 1 #include "Dim.h" 4 2 #include "Event.h" … … 42 40 boost::function<int(const EventImp &)> Wrapper(boost::function<void()> func) 43 41 { 44 return b oost::bind(&StateMachineMCP::Wrap, this, func);42 return bind(&StateMachineMCP::Wrap, this, func); 45 43 }*/ 46 44 … … 332 330 333 331 AddEvent("START", kStateIdle) 334 (b oost::bind(&StateMachineMCP::StartRun, this,_1))332 (bind(&StateMachineMCP::StartRun, this, placeholders::_1)) 335 333 (""); 336 334 337 335 AddEvent("STOP") 338 (b oost::bind(&StateMachineMCP::StopRun, this,_1))336 (bind(&StateMachineMCP::StopRun, this, placeholders::_1)) 339 337 (""); 340 338 341 339 AddEvent("RESET", kStateConfiguring1, kStateConfiguring2, kStateConfigured) 342 (b oost::bind(&StateMachineMCP::Reset, this,_1))340 (bind(&StateMachineMCP::Reset, this, placeholders::_1)) 343 341 (""); 344 342 345 343 // Verbosity commands 346 344 AddEvent("SET_VERBOSE", "B:1") 347 (b oost::bind(&StateMachineMCP::SetVerbosity, this,_1))345 (bind(&StateMachineMCP::SetVerbosity, this, placeholders::_1)) 348 346 ("set verbosity state" 349 347 "|verbosity[bool]:disable or enable verbosity for received data (yes/no), except dynamic data"); 350 348 351 349 AddEvent("PRINT") 352 (b oost::bind(&StateMachineMCP::Print, this))350 (bind(&StateMachineMCP::Print, this)) 353 351 (""); 354 352 } … … 422 420 shell.SetReceiver(io_service); 423 421 424 boost::thread t(b oost::bind(RunThread, &io_service));425 // boost::thread t(b oost::bind(&StateMachineMCP<S>::Run, &io_service));422 boost::thread t(bind(RunThread, &io_service)); 423 // boost::thread t(bind(&StateMachineMCP<S>::Run, &io_service)); 426 424 427 425 if (conf.Has("cmd"))
Note:
See TracChangeset
for help on using the changeset viewer.