Fawkes API  Fawkes Development Version
fawkes::BlackBoardNetHandlerInterfaceObserver Class Reference

Interface observer for blackboard network handler. More...

#include <>>

Inheritance diagram for fawkes::BlackBoardNetHandlerInterfaceObserver:

List of all members.

Public Member Functions

 BlackBoardNetHandlerInterfaceObserver (BlackBoard *blackboard, FawkesNetworkHub *hub)
 Constructor.
virtual ~BlackBoardNetHandlerInterfaceObserver ()
 Destructor.
virtual void bb_interface_created (const char *type, const char *id) throw ()
 BlackBoard interface created notification.
virtual void bb_interface_destroyed (const char *type, const char *id) throw ()
 BlackBoard interface destroyed notification.

Detailed Description

Interface observer for blackboard network handler.

This class is used by the BlackBoardNetworkHandler to track interface events (creation and destruction) and broadcast them to everybody listening.

Author:
Tim Niemueller

Constructor & Destructor Documentation

fawkes::BlackBoardNetHandlerInterfaceObserver::BlackBoardNetHandlerInterfaceObserver ( BlackBoard blackboard,
FawkesNetworkHub hub 
)

Constructor.

Parameters:
blackboardlocal BlackBoard
hubFawkes network hub to use to send messages

Definition at line 50 of file interface_observer.cpp.

fawkes::BlackBoardNetHandlerInterfaceObserver::~BlackBoardNetHandlerInterfaceObserver ( ) [virtual]

Destructor.

Definition at line 64 of file interface_observer.cpp.


Member Function Documentation

void fawkes::BlackBoardNetHandlerInterfaceObserver::bb_interface_created ( const char *  type,
const char *  id 
) throw () [virtual]

BlackBoard interface created notification.

This is called whenever an interface is created for a type that you registered for.

Parameters:
typetype of the interface. If you want to store this make a copy as it is not guaranteed that the supplied string exists for longer than the duration of the method call
idID of the newly created interface. If you want to store this make a copy as it is not guaranteed that the supplied string exists for longer than the duration of the method call

Reimplemented from fawkes::BlackBoardInterfaceObserver.

Definition at line 94 of file interface_observer.cpp.

void fawkes::BlackBoardNetHandlerInterfaceObserver::bb_interface_destroyed ( const char *  type,
const char *  id 
) throw () [virtual]

BlackBoard interface destroyed notification.

This is called whenever an interface is destroyed for a type that you registered for.

Parameters:
typetype of the interface. If you want to store this make a copy as it is not guaranteed that the supplied string exists for longer than the duration of the method call
idID of the newly created interface. If you want to store this make a copy as it is not guaranteed that the supplied string exists for longer than the duration of the method call

Reimplemented from fawkes::BlackBoardInterfaceObserver.

Definition at line 102 of file interface_observer.cpp.


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