SOLA
Loading...
Searching...
No Matches
sola
include
SOLA
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
18
namespace
sola {
19
20
struct
TopicMessage
{
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
29
using
TopicMessageReceiveFct = std::function<void(
const
TopicMessage
&m)>;
30
31
}
// namespace sola
32
33
#endif
sola::TopicMessage
Definition
message.h:20
Generated by
1.9.8