5#ifndef YAMICPP_INCOMING_MESSAGE_H_INCLUDED
6#define YAMICPP_INCOMING_MESSAGE_H_INCLUDED
9#include <yami4-core/dll.h>
19struct incoming_message_info;
40 details::incoming_message_info & info);
97 std::size_t priority = 0);
107 void reject(
const std::string & reason = std::string(),
108 std::size_t priority = 0);
114 details::agent_impl & agent_;
116 std::string object_name_;
117 std::string message_name_;
118 long long message_id_;
119 core::parameters * core_header_;
122 std::vector<char> * raw_buffer_;
Message broker.
Definition: agent.h:45
Incoming message.
Definition: incoming_message.h:37
const std::vector< char > & get_raw_content() const
Provides access to the raw buffer of message content.
incoming_message(incoming_message &other)
Moving constructor.
void reply(const serializable &body=parameters(), std::size_t priority=0)
Sends back the reply.
void reject(const std::string &reason=std::string(), std::size_t priority=0)
Sends back the rejection (exception) notification.
parameters * extract_parameters()
Extracts the message content.
const std::string & get_message_name() const
Returns the message name.
const std::string & get_source() const
Returns the source of this incoming message.
const parameters & get_parameters() const
Provides access to the message content.
const parameters & get_header() const
Provides access to the message header.
const std::string & get_object_name() const
Returns the destination object name.
long long get_message_id() const
Extracts the server's message identifier.
Collection of message parameters.
Definition: parameters.h:62
Common interface for serializable data source.
Definition: serializable.h:21
Namespace devoted to everything related to YAMI4.
Definition: agent.h:21