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