JoystickBlackBoardLogger Class Reference

Log joystick data gathered via RemoteBlackBoard to console. More...

Inheritance diagram for JoystickBlackBoardLogger:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Log joystick data gathered via RemoteBlackBoard to console.

Author:
Tim Niemueller

Definition at line 165 of file ffjoystick.cpp.


Constructor & Destructor Documentation

JoystickBlackBoardLogger::JoystickBlackBoardLogger ( ArgumentParser argp,
Logger logger 
) [inline]
JoystickBlackBoardLogger::~JoystickBlackBoardLogger (  )  [inline]

Destructor.

Definition at line 197 of file ffjoystick.cpp.

References fawkes::BlackBoard::close().


Member Function Documentation

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.

Parameters:
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::JoystickInterface::axis_x(), fawkes::JoystickInterface::axis_y(), fawkes::BlackBoard::is_alive(), fawkes::Logger::log_info(), fawkes::Logger::log_warn(), fawkes::JoystickInterface::pressed_buttons(), fawkes::Exception::print_trace(), fawkes::Interface::read(), and fawkes::BlackBoard::try_aliveness_restore().

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.

Parameters:
signum signal number of triggered signal
Author:
Tim Niemueller

Implements fawkes::SignalHandler.

Definition at line 237 of file ffjoystick.cpp.

References fawkes::WaitCondition::wake_all().

void JoystickBlackBoardLogger::run (  )  [inline]

Wait for quit signal from signal handler.

Definition at line 243 of file ffjoystick.cpp.

References fawkes::WaitCondition::wait().


The documentation for this class was generated from the following file:

Generated on 1 Mar 2011 for Fawkes API by  doxygen 1.6.1