OGLplus  (0.59.0) a C++ wrapper for rendering APIs

verification.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_MESSAGE_BUS_VERIFICATION_HPP
10 #define EAGINE_MESSAGE_BUS_VERIFICATION_HPP
11 
12 #include "../bitfield.hpp"
13 #include "../reflect/map_enumerators.hpp"
14 #include <cstdint>
15 
16 namespace eagine::msgbus {
17 //------------------------------------------------------------------------------
21 enum class verification_bit : std::uint8_t {
23  source_id = 1U << 0U,
25  source_certificate = 1U << 1U,
27  source_private_key = 1U << 2U,
29  message_id = 1U << 3U,
31  message_content = 1U << 4U
32 };
33 //------------------------------------------------------------------------------
34 template <typename Selector>
35 constexpr auto
36 enumerator_mapping(type_identity<verification_bit>, Selector) noexcept {
37  return enumerator_map_type<verification_bit, 5>{
38  {{"source_id", verification_bit::source_id},
39  {"source_certificate", verification_bit::source_certificate},
40  {"source_private_key", verification_bit::source_private_key},
41  {"message_id", verification_bit::message_id},
42  {"message_content", verification_bit::message_content}}};
43 }
44 //------------------------------------------------------------------------------
48 //------------------------------------------------------------------------------
49 } // namespace eagine::msgbus
50 
51 #endif // EAGINE_MESSAGE_BUS_VERIFICATION_HPP
@ message_content
The message content has been verified.
@ source_private_key
The source private key has been verified.
Class for manipulating and testing a group of enumeration-based bits.
Definition: bitfield.hpp:19
@ source_certificate
The source certificate has been verified.
@ source_id
The source has been verified.
Message bus code is placed in this namespace.
Definition: eagine.hpp:58
Template type used mostly for function type-tag dispatching.
Definition: type_identity.hpp:19
Class storing two identifier values representing class/method pair.
Definition: message_id.hpp:25
verification_bit
Bus message verification bits enumeration,.
Definition: verification.hpp:21
@ message_id
The message type id has been verified.

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).