#include <message.h>
Messages are packets of data which can be sent to a message port.
This implements a universal communication mechanism within the same thread, different threads, or even different machines.
Messages are implemented as normal C++ objects which can encode and decode themselves from and to a stream.
- Copyright
- (C) 2006 Radon Labs GmbH (C) 2013-2020 Individual contributors, see AUTHORS file
Inherits Core::RefCounted.
Inherited by Http::AttachRequestHandler, Http::HttpRequest, Http::RemoveRequestHandler, IO::CopyFile, IO::IOMessage, and Messaging::BatchMessage.
|
static void | DumpRefCountingLeaks () |
| dump refcounting leaks, call at end of application (NEBULA_DEBUG builds only!)
|
|
virtual | ~RefCounted () |
| destructor (called when refcount reaches zero)
|
|
◆ Message()
Messaging::Message::Message |
( |
| ) |
|
◆ __DeclareClass()
Messaging::Message::__DeclareClass |
( |
Message | | ) |
|
|
private |
◆ CheckId()
bool Messaging::Message::CheckId |
( |
const Messaging::Id & | id | ) |
const |
|
inline |
return true if message is of the given id
◆ Decode()
decode message from a stream
◆ DeferredHandled()
bool Messaging::Message::DeferredHandled |
( |
| ) |
const |
|
inline |
get the deferred handled flag
◆ Encode()
encode message into a stream
◆ GetDistribute()
bool Messaging::Message::GetDistribute |
( |
| ) |
const |
|
inline |
should this message be distributed over the network
◆ Handled()
bool Messaging::Message::Handled |
( |
| ) |
const |
|
inline |
return true if the message has been handled
◆ IsDeferred()
bool Messaging::Message::IsDeferred |
( |
| ) |
const |
|
inline |
◆ SetDeferred()
void Messaging::Message::SetDeferred |
( |
bool | b | ) |
|
|
inline |
◆ SetDeferredHandled()
void Messaging::Message::SetDeferredHandled |
( |
bool | b | ) |
|
|
inline |
set the deferred handled flag
◆ SetDistribute()
void Messaging::Message::SetDistribute |
( |
bool | b | ) |
|
|
inline |
enable distribution over network
◆ SetHandled()
void Messaging::Message::SetHandled |
( |
bool | b | ) |
|
|
inline |
◆ __DeclareMsgId
Messaging::Message::__DeclareMsgId |
|
private |
◆ deferred
bool Messaging::Message::deferred |
|
protected |
◆ deferredHandled
bool Messaging::Message::deferredHandled |
|
protected |
◆ distribute
bool Messaging::Message::distribute |
|
protected |
◆ handled
volatile int Messaging::Message::handled |
|
protected |
The documentation for this class was generated from the following files:
- /github/workspace/code/foundation/messaging/message.h
- /github/workspace/code/foundation/messaging/message.cc