SOLA
Loading...
Searching...
No Matches
attribute_inquiry_request.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_ATTRIBUTE_INQUIRY_REQUEST_H_
8#define MINHTON_MESSAGE_ATTRIBUTE_INQUIRY_REQUEST_H_
9
10#include <vector>
11
12#include "minhton/message/message.h"
13#include "solanet/serializer/serialize.h"
14
15namespace minhton {
20class MessageAttributeInquiryRequest : public MinhtonMessage<MessageAttributeInquiryRequest> {
21public:
26 explicit MessageAttributeInquiryRequest(MinhtonMessageHeader header, bool inquire_all = false,
27 std::vector<std::string> missing_keys = {});
28
29 bool getInquireAll() const;
30 std::vector<std::string> getMissingKeys() const;
31
32 SERIALIZE(header_, missing_keys_, inquire_all_);
33
35
36private:
37 friend MinhtonMessage;
38
41
43 bool validateImpl() const;
44
45 bool inquire_all_ = false;
46
47 std::vector<std::string> missing_keys_;
48};
49} // namespace minhton
50
51#endif
Usage: A node that is not a DSN may receive a MessageAttributeInquiryRequest during an ongoing Entity...
Definition attribute_inquiry_request.h:20
Definition message_header.h:24
Definition message.h:28
Definition minhton_watchdog_ns3.cpp:24