#include <XnVFlowRouter.h>
List of all members.
Detailed Description
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.
Constructor & Destructor Documentation
XnVFlowRouter::XnVFlowRouter |
( |
const XnChar * |
strName = "XnVFlowRouter" |
) |
|
Constructor. Create a new Flow Router
- Parameters:
-
[in] | strName | Name of the control, for log purposes. |
virtual XnVFlowRouter::~XnVFlowRouter |
( |
|
) |
[virtual] |
Member Function Documentation
void XnVFlowRouter::ClearQueue |
( |
|
) |
[virtual] |
virtual void XnVFlowRouter::CloseOldSession |
( |
|
) |
[protected, virtual] |
Get the current active Control
- Returns:
- The current active Control
virtual void XnVFlowRouter::OpenNewSession |
( |
|
) |
[protected, virtual] |
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)
- Parameters:
-
[in] | pActive | The new Active Control |
void XnVFlowRouter::Update |
( |
XnVMessage * |
pMessage |
) |
[virtual] |
Send any Message received to the active Control
- Parameters:
-
[in] | pMessage | The Message to route to the active Control |
Implements XnVMessageListener.
Member Data Documentation
The documentation for this class was generated from the following file: