Public Member Functions

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]

Constructor.

Parameters:
argp argument parser
logger logger

Definition at line 174 of file ffjoystick.cpp.

References fawkes::BlackBoard::BBIL_FLAG_DATA, fawkes::Logger::log_debug(), and fawkes::ArgumentParser::parse_hostport().

JoystickBlackBoardLogger::~JoystickBlackBoardLogger (  )  [inline]

Destructor.

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

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

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.


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