Fawkes API  Fawkes Development Version
fawkes::openni::SkelIfObserver Class Reference

Skeleton interface observer. More...

#include <>>

Inheritance diagram for fawkes::openni::SkelIfObserver:

Public Member Functions

 SkelIfObserver (BlackBoard *bb, UserMap &users)
 Constructor. More...
 
 ~SkelIfObserver ()
 Destructor. More...
 
virtual void bb_interface_created (const char *type, const char *id) throw ()
 BlackBoard interface created notification. More...
 
void process_queue ()
 Process internal queue. More...
 
- Public Member Functions inherited from fawkes::BlackBoardInterfaceObserver
 BlackBoardInterfaceObserver ()
 Empty constructor. More...
 
virtual ~BlackBoardInterfaceObserver ()
 Destructor. More...
 
virtual void bb_interface_destroyed (const char *type, const char *id) throw ()
 BlackBoard interface destroyed notification. More...
 

Additional Inherited Members

- Protected Types inherited from fawkes::BlackBoardInterfaceObserver
typedef LockMap< std::string, std::list< std::string > > ObservedInterfaceLockMap
 Type for lockable interface type hash sets. More...
 
typedef ObservedInterfaceLockMap::iterator ObservedInterfaceLockMapIterator
 Type for iterator of lockable interface type hash sets. More...
 
- Protected Member Functions inherited from fawkes::BlackBoardInterfaceObserver
void bbio_add_observed_create (const char *type_pattern, const char *id_pattern="*") throw ()
 Add interface creation type to watch list. More...
 
void bbio_add_observed_destroy (const char *type_pattern, const char *id_pattern="*") throw ()
 Add interface destruction type to watch list. More...
 
ObservedInterfaceLockMapbbio_get_observed_create () throw ()
 Get interface creation type watch list. More...
 
ObservedInterfaceLockMapbbio_get_observed_destroy () throw ()
 Get interface destriction type watch list. More...
 

Detailed Description

Skeleton interface observer.

This class opens all OpenNI skeleton interfaces and registers as an observer to open any newly opened interface.

Author
Tim Niemueller

Definition at line 42 of file skel_if_observer.h.

Constructor & Destructor Documentation

◆ SkelIfObserver()

fawkes::openni::SkelIfObserver::SkelIfObserver ( BlackBoard bb,
UserMap &  users 
)

◆ ~SkelIfObserver()

fawkes::openni::SkelIfObserver::~SkelIfObserver ( )

Destructor.

Definition at line 78 of file skel_if_observer.cpp.

References fawkes::BlackBoard::unregister_observer().

Member Function Documentation

◆ bb_interface_created()

void fawkes::openni::SkelIfObserver::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 85 of file skel_if_observer.cpp.

References fawkes::Mutex::lock(), and fawkes::Mutex::unlock().

◆ process_queue()

void fawkes::openni::SkelIfObserver::process_queue ( )

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