|
VR-Engage
2.2
|
Go to the source code of this file.
Classes | |
| class | makVre::DtVreMessageManager |
| struct | makVre::DtVreMessageManager::EventStats |
Namespaces | |
| namespace | makVre |
Macros | |
Message Type Assertion Macros | |
| #define | ASSERT_TYPE(msg, MsgType, msgCast) |
| #define | ASSERT_TYPE_NO_CAST(msg, MsgType) |
This file contains the DtVreMessageManager abstract base class which serves as the central hub for message routing and dispatching in the VREngage system. It provides a thread-safe mechanism for registering message handlers, queuing messages, and dispatching messages to appropriate handlers across multiple threads.
| #define ASSERT_TYPE | ( | msg, | |
| MsgType, | |||
| msgCast ) |
Asserts that a message is of the expected type and casts it.
| msg | Pointer to the message to check and cast |
| MsgType | Expected message type (class name) |
| msgCast | Variable name for the cast message pointer |
This macro checks that a message is of the expected type using dynamic_cast, and then creates a properly typed pointer to the message using static_cast. It should be used when handling messages for which you have registered a handler with the exact message type (no wildcards).
| #define ASSERT_TYPE_NO_CAST | ( | msg, | |
| MsgType ) |
Asserts that a message is of the expected type without casting it.
| msg | Pointer to the message to check |
| MsgType | Expected message type (class name) |
This macro checks that a message is of the expected type using dynamic_cast, but does not create a cast pointer. It should be used when handling messages for which you have registered a handler with the exact message type (no wildcards) and you don't need to access type-specific members of the message.