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 <boost/optional.hpp>
15 #include "primitive.pb.h"
16 
17 namespace shared_model {
18  namespace proto {
19  namespace permissions {
26  iroha::protocol::RolePermission perm) noexcept;
27 
32  iroha::protocol::RolePermission toTransport(
34 
40 
47  iroha::protocol::GrantablePermission perm) noexcept;
48 
53  iroha::protocol::GrantablePermission toTransport(
55 
61 
66  std::vector<std::string> toString(
67  const interface::PermissionSet<interface::permissions::Role> &set);
68 
73  std::vector<std::string> toString(
74  const interface::PermissionSet<interface::permissions::Grantable>
75  &set);
76  } // namespace permissions
77  } // namespace proto
78 } // namespace shared_model
79 
80 #endif // IROHA_SHARED_MODEL_PROTO_PERMISSIONS_HPP
iroha::protocol::RolePermission toTransport(interface::permissions::Role r)
Definition: permissions.cpp:17
Grantable
Definition: permissions.hpp:66
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