hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
revoke_permission.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_REVOKE_PERMISSION_HPP
7 #define IROHA_SHARED_MODEL_REVOKE_PERMISSION_HPP
8 
10 
13 
14 namespace shared_model {
15  namespace interface {
19  class RevokePermission : public ModelPrimitive<RevokePermission> {
20  public:
24  virtual const types::AccountIdType &accountId() const = 0;
25 
29  virtual permissions::Grantable permissionName() const = 0;
30 
31  std::string toString() const override = 0;
32 
33  bool operator==(const ModelType &rhs) const override;
34  };
35  } // namespace interface
36 } // namespace shared_model
37 
38 #endif // IROHA_SHARED_MODEL_REVOKE_PERMISSION_HPP
virtual const types::AccountIdType & accountId() const =0
Grantable
Definition: permissions.hpp:69
bool operator==(const ModelType &rhs) const override
Definition: revoke_permission.cpp:11
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
std::string toString() const override=0
Definition: revoke_permission.hpp:19
Definition: model_primitive.hpp:22
Definition: command_executor.hpp:12
virtual permissions::Grantable permissionName() const =0