Fawkes API
Fawkes Development Version
|
Log joystick data gathered via RemoteBlackBoard to console. More...
Public Member Functions | |
JoystickBlackBoardLogger (ArgumentParser &argp, Logger *logger) | |
Constructor. More... | |
~JoystickBlackBoardLogger () | |
Destructor. More... | |
virtual void | bb_interface_data_changed (Interface *interface) throw () |
BlackBoard data changed notification. More... | |
void | handle_signal (int signum) |
Signal hanlding method. More... | |
void | run () |
Wait for quit signal from signal handler. More... | |
![]() | |
BlackBoardInterfaceListener (const char *name_format,...) | |
Constructor. More... | |
virtual | ~BlackBoardInterfaceListener () |
Destructor. More... | |
const char * | bbil_name () const |
Get BBIL name. More... | |
virtual bool | bb_interface_message_received (Interface *interface, Message *message) throw () |
BlackBoard message received notification. More... | |
virtual void | bb_interface_writer_added (Interface *interface, unsigned int instance_serial) throw () |
A writing instance has been opened for a watched interface. More... | |
virtual void | bb_interface_writer_removed (Interface *interface, unsigned int instance_serial) throw () |
A writing instance has been closed for a watched interface. More... | |
virtual void | bb_interface_reader_added (Interface *interface, unsigned int instance_serial) throw () |
A reading instance has been opened for a watched interface. More... | |
virtual void | bb_interface_reader_removed (Interface *interface, unsigned int instance_serial) throw () |
A reading instance has been closed for a watched interface. More... | |
![]() | |
virtual | ~SignalHandler () |
Virtual destructor. More... | |
Additional Inherited Members | |
![]() | |
enum | QueueEntryType { DATA = 0, MESSAGES = 1, READER = 2, WRITER = 3 } |
Queue entry type. More... | |
typedef std::list< QueueEntry > | InterfaceQueue |
Queue of additions/removal of interfaces. More... | |
typedef std::map< std::string, Interface * > | InterfaceMap |
Map of currently active event subscriptions. More... | |
![]() | |
void | bbil_add_data_interface (Interface *interface) |
Add an interface to the data modification watch list. More... | |
void | bbil_add_message_interface (Interface *interface) |
Add an interface to the message received watch list. More... | |
void | bbil_add_reader_interface (Interface *interface) |
Add an interface to the reader addition/removal watch list. More... | |
void | bbil_add_writer_interface (Interface *interface) |
Add an interface to the writer addition/removal watch list. More... | |
void | bbil_remove_data_interface (Interface *interface) |
Remove an interface to the data modification watch list. More... | |
void | bbil_remove_message_interface (Interface *interface) |
Remove an interface to the message received watch list. More... | |
void | bbil_remove_reader_interface (Interface *interface) |
Remove an interface to the reader addition/removal watch list. More... | |
void | bbil_remove_writer_interface (Interface *interface) |
Remove an interface to the writer addition/removal watch list. More... | |
Interface * | bbil_data_interface (const char *iuid) throw () |
Get interface instance for given UID. More... | |
Interface * | bbil_message_interface (const char *iuid) throw () |
Get interface instance for given UID. More... | |
Interface * | bbil_reader_interface (const char *iuid) throw () |
Get interface instance for given UID. More... | |
Interface * | bbil_writer_interface (const char *iuid) throw () |
Get interface instance for given UID. More... | |
Log joystick data gathered via RemoteBlackBoard to console.
Definition at line 89 of file ffjoystick.cpp.
|
inline |
Constructor.
argp | argument parser |
logger | logger |
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::Logger::log_debug(), fawkes::ArgumentParser::parse_hostport(), and fawkes::Interface::read().
|
inline |
Destructor.
Definition at line 130 of file ffjoystick.cpp.
|
inlinevirtual |
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 136 of file ffjoystick.cpp.
References fawkes::Exception::print_trace().
|
inlinevirtual |
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 171 of file ffjoystick.cpp.
|
inline |
Wait for quit signal from signal handler.
Definition at line 177 of file ffjoystick.cpp.
Referenced by JoystickBlackBoardActListener::bb_interface_message_received().