Changeset 11481 for trunk/FACT++/src/fscctrl.cc
- Timestamp:
- 07/20/11 08:03:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fscctrl.cc
r11479 r11481 1 #include < boost/bind.hpp>1 #include <functional> 2 2 3 3 #include "Dim.h" … … 11 11 12 12 #include "tools.h" 13 14 13 15 14 namespace ba = boost::asio; … … 370 369 } 371 370 372 boost::function<int(const EventImp &)> Wrapper(boost::function<void()> func)373 { 374 return b oost::bind(&StateMachineFSC::Wrap, this, func);371 function<int(const EventImp &)> Wrapper(function<void()> func) 372 { 373 return bind(&StateMachineFSC::Wrap, this, func); 375 374 } 376 375 … … 480 479 // Verbosity commands 481 480 T::AddEvent("SET_VERBOSE", "B:1") 482 (b oost::bind(&StateMachineFSC::SetVerbosity, this,_1))481 (bind(&StateMachineFSC::SetVerbosity, this, placeholders::_1)) 483 482 ("set verbosity state" 484 483 "|verbosity[bool]:disable or enable verbosity for received data (yes/no), except dynamic data"); 485 484 486 485 T::AddEvent("DUMP_STREAM", "B:1") 487 (b oost::bind(&StateMachineFSC::SetDumpStream, this,_1))486 (bind(&StateMachineFSC::SetDumpStream, this, placeholders::_1)) 488 487 ("" 489 488 ""); … … 491 490 // Conenction commands 492 491 AddEvent("DISCONNECT", kStateConnected) 493 (b oost::bind(&StateMachineFSC::Disconnect, this))492 (bind(&StateMachineFSC::Disconnect, this)) 494 493 ("disconnect from ethernet"); 495 494 496 495 AddEvent("RECONNECT", "O", kStateDisconnected, kStateConnected) 497 (b oost::bind(&StateMachineFSC::Reconnect, this,_1))496 (bind(&StateMachineFSC::Reconnect, this, placeholders::_1)) 498 497 ("(Re)connect ethernet connection to FTM, a new address can be given" 499 498 "|[host][string]:new ethernet address in the form <host:port>");
Note:
See TracChangeset
for help on using the changeset viewer.