SOLA
Loading...
Searching...
No Matches
message.h
1// Copyright The SOLA Contributors
2//
3// Licensed under the MIT License.
4// For details on the licensing terms, see the LICENSE file.
5// SPDX-License-Identifier: MIT
6
7#ifndef SOLA_MESSAGE_H_
8#define SOLA_MESSAGE_H_
9
10#include <array>
11#include <cstdint>
12#include <functional>
13#include <string>
14
15#include "solanet/serializer/serialize.h"
16#include "solanet/uuid.h"
17
18namespace sola {
19
21 std::string topic;
22 solanet::UUID sender;
23 std::string content;
24 solanet::UUID uuid;
25
26 SERIALIZE(topic, sender, content, uuid);
27};
28
29using TopicMessageReceiveFct = std::function<void(const TopicMessage &m)>;
30
31} // namespace sola
32
33#endif
Definition message.h:20