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