An instance of a AbstractMessageTypeDescriptor represents a single message type in the Kanzi message system in an abstract homogeneous form.
More...
#include <kanzi/core/message/abstract_message_type_descriptor.hpp>
An instance of a AbstractMessageTypeDescriptor represents a single message type in the Kanzi message system in an abstract homogeneous form.
It is used internally by MessageType, DynamicMessageType and AbstractMessageType classes.
To create a new message type, use MessageType.
To work with the existing message types, use the DynamicMessageType and AbstractMessageType classes.
◆ MetaclassGetter
Alias for a pointer to getter of metaclass of a message arguments class.
◆ ManagedDescriptor
◆ AbstractMessageTypeDescriptor() [1/2]
Constructor.
- Parameters
-
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. |
argumentsMetaclassGetter | Function pointer to getter of metaclass of the arguments class associated with the message type. |
◆ AbstractMessageTypeDescriptor() [2/2]
Constructor.
- Parameters
-
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. |
argumentsMetaclassGetter | Function pointer to getter of metaclass of the arguments class associated with the message type. |
◆ ~AbstractMessageTypeDescriptor()
kanzi::AbstractMessageTypeDescriptor::~AbstractMessageTypeDescriptor |
( |
| ) |
|
◆ getName()
const char* kanzi::AbstractMessageTypeDescriptor::getName |
( |
| ) |
const |
|
inline |
Gets the fully qualified name of the message type in the form "Class.MessageType".
- Returns
- The fully qualified name of the message type.
◆ getRouting()
MessageRouting kanzi::AbstractMessageTypeDescriptor::getRouting |
( |
| ) |
const |
|
inline |
Gets the message routing of the message type.
- Returns
- MessageRouting mode of the message type.
◆ getArgumentsMetaclass()
const Metaclass* kanzi::AbstractMessageTypeDescriptor::getArgumentsMetaclass |
( |
| ) |
const |
Gets the metaclass of the message arguments associated with the message type.
- Returns
- The Metaclass pointer of the message arguments associated with the MessageType.
◆ getEditorInfo()
Gets editor info for the message type.
/return Shared pointer to editor info.
◆ find()
Finds an existing message type by name.
- Parameters
-
name | Fully qualified name of the message type. |
- Returns
- Pointer to AbstractMessageTypeDescriptor if found, else nullptr.
◆ registerDescriptor()
static void kanzi::AbstractMessageTypeDescriptor::registerDescriptor |
( |
ManagedDescriptor |
descriptor | ) |
|
|
static |
Registers a message type instance with managed lifetime.
The documentation for this class was generated from the following file: