hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
permission_to_string.hpp
Go to the documentation of this file.
1 
6 #ifndef PERMISSION_TO_STRING_HPP
7 #define PERMISSION_TO_STRING_HPP
8 
9 #include <string>
10 #include <vector>
11 
13 
14 namespace shared_model {
15  namespace interface {
17  public:
18  virtual ~PermissionToString() = default;
23  virtual std::string toString(permissions::Role r) = 0;
24 
29  virtual std::string toString(permissions::Grantable r) = 0;
30 
35  virtual std::vector<std::string> toString(
36  const RolePermissionSet &set) = 0;
37 
42  virtual std::vector<std::string> toString(
43  const GrantablePermissionSet &set) = 0;
44  };
45  } // namespace interface
46 } // namespace shared_model
47 
48 #endif // PERMISSION_TO_STRING_HPP
Grantable
Definition: permissions.hpp:66
Definition: permissions.hpp:92
Role
Definition: permissions.hpp:17
Definition: permission_to_string.hpp:16
virtual std::string toString(permissions::Role r)=0
Definition: command_executor.hpp:12