hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_revoke_permission.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_REVOKE_PERMISSION_HPP
7 #define IROHA_PROTO_REVOKE_PERMISSION_HPP
8 
10 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15  class RevokePermission final
16  : public CopyableProto<interface::RevokePermission,
17  iroha::protocol::Command,
18  RevokePermission> {
19  public:
20  template <typename CommandType>
21  explicit RevokePermission(CommandType &&command);
22 
24 
25  RevokePermission(RevokePermission &&o) noexcept;
26 
27  const interface::types::AccountIdType &accountId() const override;
28 
30 
31  std::string toString() const override;
32 
33  private:
34  const iroha::protocol::RevokePermission &revoke_permission_;
35  };
36 
37  } // namespace proto
38 } // namespace shared_model
39 
40 #endif // IROHA_PROTO_REVOKE_PERMISSION_HPP
interface::permissions::Grantable permissionName() const override
Definition: proto_revoke_permission.cpp:34
Grantable
Definition: permissions.hpp:66
std::string toString() const override
Definition: proto_revoke_permission.cpp:38
std::string AccountIdType
Type of account id.
Definition: types.hpp:35
Definition: proto_revoke_permission.hpp:15
const interface::types::AccountIdType & accountId() const override
Definition: proto_revoke_permission.cpp:30
RevokePermission(CommandType &&command)
Definition: proto_revoke_permission.cpp:13
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45