Navigation
API > API/Runtime > API/Runtime/MessagingCommon
Template for handlers of one specific message type (via raw function pointers).
| Name | TRawMessageHandler |
| Type | class |
| Header File | /Engine/Source/Runtime/MessagingCommon/Public/MessageHandlers.h |
| Include Path | #include "MessageHandlers.h" |
Syntax
template<typename MessageType, typename HandlerType>
class TRawMessageHandler : public IMessageHandler
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TRawMessageHandler
(
HandlerType* InHandler, |
Creates and initializes a new message handler. | MessageHandlers.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TRawMessageHandler() |
Virtual destructor. | MessageHandlers.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FuncType | void(HandlerType::*) | Type definition for function pointers that are compatible with this TRawMessageHandler. | MessageHandlers.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Func | FuncType | Holds a pointer to the actual handler function. | MessageHandlers.h | |
| Handler | HandlerType * | Holds a pointer to the object handling the messages. | MessageHandlers.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void HandleMessage
(
const TSharedRef< IMessageContext, ESPMode::ThreadSafe >& Context |
MessageHandlers.h |