NITE 1.5.1 - API Reference
|
#include <XnVMessageMux.h>
Public Types | |
enum | XnVMuxMode { XNV_MUX_MODE_ANY, XNV_MUX_MODE_ALL, XNV_MUX_MODE_SPECIFIC, XNV_MUX_MODE_LAST } |
Public Member Functions | |
XnVMessageMux (const XnChar *strName="XnVMessageMux") | |
~XnVMessageMux () | |
void | AddType (const XnChar *strType) |
void | Update (XnVMessage *pMessage) |
void | SetMode (XnVMuxMode eMode) |
void | SetMode (const XnChar *strType) |
Protected Member Functions | |
void | HandleSingleMessage (XnVMessage *pMessage) |
Protected Attributes | |
XnVComplexMessage * | m_pComplexMessage |
XnVMuxMode | m_eMode |
XnChar * | m_strSpecific |
XnStringsHash * | m_phTypes |
XnUInt32 | m_nExpected |
XnList * | m_phCurrent |
A XnVMessageMux is a Filter which created Complex Messages from multiple other Messages
Definition at line 20 of file XnVMessageMux.h.
The Message Mux can run in several different modes
Definition at line 27 of file XnVMessageMux.h.
XnVMessageMux::XnVMessageMux | ( | const XnChar * | strName = "XnVMessageMux" | ) |
Constructor. Default mode is XNV_MUX_MODE_ANY
[in] | strName | Name of the control, for log purposes. |
void XnVMessageMux::AddType | ( | const XnChar * | strType | ) |
Expect another type
[in] | strType | The type to be expected |
void XnVMessageMux::HandleSingleMessage | ( | XnVMessage * | pMessage | ) | [protected] |
void XnVMessageMux::SetMode | ( | XnVMuxMode | eMode | ) |
Change the mode
[in] | eMode | The new mode |
void XnVMessageMux::SetMode | ( | const XnChar * | strType | ) |
Change the mode to a specific type
[in] | strType | The type to use |
void XnVMessageMux::Update | ( | XnVMessage * | pMessage | ) | [virtual] |
Handle a Message. Add it to a Complex Message, and decide whether or not to send that Message
[in] | pMessage | The new Message |
Implements XnVMessageListener.
XnVMuxMode XnVMessageMux::m_eMode [protected] |
Definition at line 76 of file XnVMessageMux.h.
XnUInt32 XnVMessageMux::m_nExpected [protected] |
Definition at line 80 of file XnVMessageMux.h.
XnVComplexMessage* XnVMessageMux::m_pComplexMessage [protected] |
Definition at line 75 of file XnVMessageMux.h.
XnList* XnVMessageMux::m_phCurrent [protected] |
Definition at line 81 of file XnVMessageMux.h.
XnStringsHash* XnVMessageMux::m_phTypes [protected] |
Definition at line 79 of file XnVMessageMux.h.
XnChar* XnVMessageMux::m_strSpecific [protected] |
Definition at line 77 of file XnVMessageMux.h.