i6engine  1.0
i6e::core::MessagingController Class Reference

Central controller for messaging between subsystems and subsystems of different clients. More...

#include <D:/Projekte/i6engine/libs/i6engine-core/include/i6engine/core/messaging/MessagingController.h>

Public Member Functions

 MessagingController ()
 Standard constructor. More...
 
 ~MessagingController ()
 
void registerMessageType (uint16_t messageType, MessageSubscriber *objMessageSubscriber)
 This method registers a message type with the given message subscriber and the given Method. It is normally called via the macro ISIXE_REGISTERMESSAGETYPE. More...
 
void unregisterMessageType (uint16_t messageType, MessageSubscriber *objMessageSubscriber)
 This method unregisters a message type of the given message subscriber. More...
 
void deliverMessage (const Message::Ptr &msg)
 This method sends a message. More...
 
void clear ()
 removes all messages in buffer More...
 

Detailed Description

Central controller for messaging between subsystems and subsystems of different clients.

Definition at line 85 of file MessagingController.h.

Constructor & Destructor Documentation

i6e::core::MessagingController::MessagingController ( )

Standard constructor.

i6e::core::MessagingController::~MessagingController ( )

Member Function Documentation

void i6e::core::MessagingController::clear ( )

removes all messages in buffer

void i6e::core::MessagingController::deliverMessage ( const Message::Ptr msg)

This method sends a message.

Parameters
Themessage to be sent.
void i6e::core::MessagingController::registerMessageType ( uint16_t  messageType,
MessageSubscriber objMessageSubscriber 
)

This method registers a message type with the given message subscriber and the given Method. It is normally called via the macro ISIXE_REGISTERMESSAGETYPE.

Parameters
strMessageTypeName of the new message type.
objMessageSubscriberThe new receiver of messages of the given type (should be the caller by itself).
bolNetworkingFlag if the message type should sent over the network.
void i6e::core::MessagingController::unregisterMessageType ( uint16_t  messageType,
MessageSubscriber objMessageSubscriber 
)

This method unregisters a message type of the given message subscriber.

Parameters
strMessageTypeName of the new message type.
objMessageSubscriberReceiver to be deleted from the subscriber list.

The documentation for this class was generated from the following file: