An instance of a MessageType represents a single message type in the Kanzi message system. More...
#include <kanzi/core/message/message_type.hpp>
Public Types | |
using | ArgumentsType = TArguments |
Alias for associated message arguments class. More... | |
using | FunctionType = function< void(ArgumentsType &)> |
Alias for compatible handler functions. More... | |
Static Public Member Functions | |
static const Metaclass * | getArgumentsMetaclass () |
Gets the metaclass of the message arguments associated with the message type. More... | |
static constexpr bool | hasCustomArgumentsClass () |
Returns whether the message arguments class associated with the message type is a custom message arguments class or the base MessageArguments class. More... | |
Protected Member Functions | |
MessageType ()=default | |
Constructor. More... | |
Protected Attributes | |
const AbstractMessageTypeDescriptor * | m_descriptor |
Describes the name, routing, and message arguments metaclass of the message type. More... | |
Friends | |
class | AbstractMessageType |
template<typename T > | |
class | DynamicMessageType |
An instance of a MessageType represents a single message type in the Kanzi message system.
A message type exists throughout the lifetime of an application.
To work with the existing message types in the Kanzi message system, use the DynamicMessageType and AbstractMessageType classes.
To declare a new message type:
To define a new message type:
using kanzi::MessageType< TArguments >::ArgumentsType = TArguments |
Alias for associated message arguments class.
using kanzi::MessageType< TArguments >::FunctionType = function<void(ArgumentsType&)> |
Alias for compatible handler functions.
|
inlineexplicit |
Constructor.
name | Fully qualified name for the message type as a FixedString. |
routing | Message routing mode for the message type. |
editorInfo | Sets the editor information for this message type that Kanzi Studio uses. |
|
inlineexplicit |
Constructor.
name | Fully qualified name for the message type as a MetadataGeneratedName. |
routing | Message routing mode for the message type. |
editorInfo | Sets the editor information for this message type that Kanzi Studio uses. |
|
inlineexplicit |
Constructor.
name | Fully qualified name for the message type as a FixedString. |
|
inlineexplicit |
Constructor.
name | Fully qualified name for the message type as a MetadataGeneratedName. |
|
inlineexplicit |
Constructor.
name | Fully qualified name for the message type as a FixedString. |
editorInfo | Sets the editor information for this message type that Kanzi Studio uses. |
|
inlineexplicit |
Constructor.
name | Fully qualified name for the message type as a MetadataGeneratedName. |
editorInfo | Sets the editor information for this message type that Kanzi Studio uses. |
|
inline |
Destructor.
|
delete |
Deleted copy constructor.
|
explicitprotecteddefault |
Constructor.
Used by DynamicMessageType.
|
inline |
Conversion operator to AbstractMessageType.
|
inline |
Gets the fully qualified name of the message type in the form "Class.MessageType".
|
inline |
Gets the message routing of the message type.
|
inlinestatic |
Gets the metaclass of the message arguments associated with the message type.
|
inline |
Gets the AbstractMessageTypeDescriptor of the message type.
|
inline |
Gets the editor information for the message type.
|
inlinestatic |
Returns whether the message arguments class associated with the message type is a custom message arguments class or the base MessageArguments class.
|
delete |
Deleted assignment.
|
friend |
|
protected |
Describes the name, routing, and message arguments metaclass of the message type.