NITE 1.4.1 - API Reference
|
#include <XnVFlowRouter.h>
Public Member Functions | |
XnVFlowRouter (const XnChar *strName="XnVFlowRouter") | |
virtual | ~XnVFlowRouter () |
XnStatus | SetActive (XnVMessageListener *pActive) |
XnVMessageListener * | GetActive () const |
void | Update (XnVMessage *pMessage) |
void | ClearQueue () |
Protected Member Functions | |
virtual void | CloseOldSession () |
virtual void | OpenNewSession () |
Protected Attributes | |
XnVMessageListener * | m_pActive |
XnStringsHash | m_Properties |
A XnVFlowRouter is a Message Listener, that holds another single Listener internally, and sends any Message it gets to that Listener. The single internal Listener (referred to as the Active Control) may be changed, thus enabling to create the application's automaton.
Definition at line 21 of file XnVFlowRouter.h.
XnVFlowRouter::XnVFlowRouter | ( | const XnChar * | strName = "XnVFlowRouter" | ) |
Constructor. Create a new Flow Router
[in] | strName | Name of the control, for log purposes. |
virtual XnVFlowRouter::~XnVFlowRouter | ( | ) | [virtual] |
void XnVFlowRouter::ClearQueue | ( | ) | [virtual] |
Clear the Multi-threading queue
Reimplemented from XnVMessageListener.
virtual void XnVFlowRouter::CloseOldSession | ( | ) | [protected, virtual] |
XnVMessageListener* XnVFlowRouter::GetActive | ( | ) | const |
Get the current active Control
virtual void XnVFlowRouter::OpenNewSession | ( | ) | [protected, virtual] |
XnStatus XnVFlowRouter::SetActive | ( | XnVMessageListener * | pActive | ) |
Change the active Control. If a session is kept, it is closed to the old Active Control (CloseOldSession), and then opened to the new Active Control (OpenNewSession)
[in] | pActive | The new Active Control |
void XnVFlowRouter::Update | ( | XnVMessage * | pMessage | ) | [virtual] |
Send any Message received to the active Control
[in] | pMessage | The Message to route to the active Control |
Implements XnVMessageListener.
XnVMessageListener* XnVFlowRouter::m_pActive [protected] |
Definition at line 62 of file XnVFlowRouter.h.
XnStringsHash XnVFlowRouter::m_Properties [protected] |
Definition at line 64 of file XnVFlowRouter.h.