hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
permissions.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_PERMISSIONS_HPP
7 #define IROHA_SHARED_MODEL_PROTO_PERMISSIONS_HPP
8 
10 
11 #include <string>
12 #include <vector>
13 
14 #include "primitive.pb.h"
15 
16 namespace shared_model {
17  namespace proto {
18  namespace permissions {
25  iroha::protocol::RolePermission perm) noexcept;
26 
31  iroha::protocol::RolePermission toTransport(
33 
39 
46  iroha::protocol::GrantablePermission perm) noexcept;
47 
52  iroha::protocol::GrantablePermission toTransport(
54 
60 
65  std::vector<std::string> toString(
66  const interface::PermissionSet<interface::permissions::Role> &set);
67 
72  std::vector<std::string> toString(
73  const interface::PermissionSet<interface::permissions::Grantable>
74  &set);
75  } // namespace permissions
76  } // namespace proto
77 } // namespace shared_model
78 
79 #endif // IROHA_SHARED_MODEL_PROTO_PERMISSIONS_HPP
iroha::protocol::RolePermission toTransport(interface::permissions::Role r)
Definition: permissions.cpp:17
Grantable
Definition: permissions.hpp:70
interface::permissions::Role fromTransport(iroha::protocol::RolePermission perm) noexcept
Definition: permissions.cpp:12
Role
Definition: permissions.hpp:17
std::string toString(interface::permissions::Role r)
Definition: permissions.cpp:22
Definition: command_executor.hpp:12