Fawkes API  Fawkes Development Version
JoystickBlackBoardLogger Class Reference

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

Inheritance diagram for JoystickBlackBoardLogger:

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

Constructor & Destructor Documentation

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

Constructor.

Parameters:
argpargument parser
loggerlogger

Just a quick hack for rumble testing __joystick_if->msgq_enqueue( new JoystickInterface::StartRumbleMessage(1000, 0, JoystickInterface::DIRECTION_UP, 0xFFFF, 0x8000));

Definition at line 98 of file ffjoystick.cpp.

References fawkes::ArgumentParser::parse_hostport(), fawkes::Interface::read(), and fawkes::Logger::log_debug().

JoystickBlackBoardLogger::~JoystickBlackBoardLogger ( ) [inline]

Destructor.

Definition at line 130 of file ffjoystick.cpp.


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:
interfaceinterface instance that you supplied to bbil_add_data_interface()

Reimplemented from fawkes::BlackBoardInterfaceListener.

Definition at line 136 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.

Parameters:
signumsignal number of triggered signal
Author:
Tim Niemueller

Implements fawkes::SignalHandler.

Definition at line 171 of file ffjoystick.cpp.

void JoystickBlackBoardLogger::run ( ) [inline]

Wait for quit signal from signal handler.

Definition at line 177 of file ffjoystick.cpp.


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