SOLA
Loading...
Searching...
No Matches
minhton
include
minhton
message
subscription_update.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 MINHTON_MESSAGE_SUBSCRIPTION_UPDATE_H_
8
#define MINHTON_MESSAGE_SUBSCRIPTION_UPDATE_H_
9
10
#include "minhton/algorithms/esearch/node_data.h"
11
#include "minhton/message/message.h"
12
#include "solanet/serializer/serialize.h"
13
14
namespace
minhton
{
18
class
MessageSubscriptionUpdate
:
public
MinhtonMessage
<MessageSubscriptionUpdate> {
19
public
:
22
MessageSubscriptionUpdate
(
MinhtonMessageHeader
header, NodeData::Key key, NodeData::Value value);
23
24
NodeData::Key getKey()
const
;
25
NodeData::Value getValue()
const
;
26
27
SERIALIZE(header_, key_, value_);
28
29
MessageSubscriptionUpdate
() =
default
;
30
31
private
:
32
friend
MinhtonMessage
;
33
35
MinhtonMessageHeader
header_;
36
38
bool
validateImpl()
const
;
39
40
NodeData::Key key_;
41
NodeData::Value value_;
42
};
43
}
// namespace minhton
44
45
#endif
minhton::MessageSubscriptionUpdate
Usage: If a node's local data is modified (inserted, updated or removed), it will send a subscription...
Definition
subscription_update.h:18
minhton::MinhtonMessageHeader
Definition
message_header.h:24
minhton::MinhtonMessage
Definition
message.h:28
minhton
Definition
minhton_watchdog_ns3.cpp:24
Generated by
1.9.8