hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
grant_permission.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_GRANT_PERMISSION_HPP
7 #define IROHA_SHARED_MODEL_GRANT_PERMISSION_HPP
8 
12 
13 namespace shared_model {
14  namespace interface {
18  class GrantPermission : public ModelPrimitive<GrantPermission> {
19  public:
23  virtual const types::AccountIdType &accountId() const = 0;
27  virtual permissions::Grantable permissionName() const = 0;
28 
29  std::string toString() const override = 0;
30 
31  bool operator==(const ModelType &rhs) const override;
32  };
33  } // namespace interface
34 } // namespace shared_model
35 
36 #endif // IROHA_SHARED_MODEL_GRANT_PERMISSIONS_HPP
Grantable
Definition: permissions.hpp:66
std::string AccountIdType
Type of account id.
Definition: types.hpp:35
virtual permissions::Grantable permissionName() const =0
std::string toString() const override=0
Definition: grant_permission.hpp:18
bool operator==(const ModelType &rhs) const override
Definition: grant_permission.cpp:11
Definition: model_primitive.hpp:23
Definition: command_executor.hpp:12
virtual const types::AccountIdType & accountId() const =0