hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
create_role.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_CREATE_ROLE_HPP
7 #define IROHA_SHARED_MODEL_CREATE_ROLE_HPP
8 
10 
13 
14 namespace shared_model {
15  namespace interface {
19  class CreateRole : public ModelPrimitive<CreateRole> {
20  public:
24  virtual const types::RoleIdType &roleName() const = 0;
25 
29  virtual const RolePermissionSet &rolePermissions() 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_CREATE_ROLE_HPP
std::string toString() const override=0
CreateRole ModelType
Definition: model_primitive.hpp:27
Definition: permissions.hpp:96
virtual const RolePermissionSet & rolePermissions() const =0
virtual const types::RoleIdType & roleName() const =0
bool operator==(const ModelType &rhs) const override
Definition: create_role.cpp:11
Definition: model_primitive.hpp:22
Definition: create_role.hpp:19
Definition: command_executor.hpp:12
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:51