|
Fawkes API
Fawkes Development Version
|
Log joystick data gathered via RemoteBlackBoard to console. More...

Public Member Functions | |
| JoystickBlackBoardLogger (ArgumentParser &argp, Logger *logger) | |
| Constructor. | |
| ~JoystickBlackBoardLogger () | |
| Destructor. | |
| virtual void | bb_interface_data_changed (Interface *interface) throw () |
| BlackBoard data changed notification. | |
| void | handle_signal (int signum) |
| Signal hanlding method. | |
| void | run () |
| Wait for quit signal from signal handler. | |
Log joystick data gathered via RemoteBlackBoard to console.
| JoystickBlackBoardLogger::JoystickBlackBoardLogger | ( | ArgumentParser & | argp, |
| Logger * | logger | ||
| ) | [inline] |
Constructor.
| argp | argument parser |
| logger | logger |
Definition at line 174 of file ffjoystick.cpp.
References fawkes::ArgumentParser::parse_hostport(), fawkes::Interface::read(), fawkes::Logger::log_debug(), and fawkes::BlackBoard::BBIL_FLAG_DATA.
| JoystickBlackBoardLogger::~JoystickBlackBoardLogger | ( | ) | [inline] |
Destructor.
Definition at line 197 of file ffjoystick.cpp.
| virtual void JoystickBlackBoardLogger::bb_interface_data_changed | ( | Interface * | interface | ) | throw () [inline, virtual] |
BlackBoard data changed notification.
This is called whenever the data in an interface that you registered for is modified. This happens if a writer calls the Interface::write() method.
| interface | interface instance that you supplied to bbil_add_data_interface() |
Reimplemented from fawkes::BlackBoardInterfaceListener.
Definition at line 203 of file ffjoystick.cpp.
References fawkes::Exception::print_trace().
| void JoystickBlackBoardLogger::handle_signal | ( | int | signum | ) | [inline, virtual] |
Signal hanlding method.
Implement this method with the action you want to perform on the registered signals.
| signum | signal number of triggered signal |
Implements fawkes::SignalHandler.
Definition at line 237 of file ffjoystick.cpp.
| void JoystickBlackBoardLogger::run | ( | ) | [inline] |
Wait for quit signal from signal handler.
Definition at line 243 of file ffjoystick.cpp.