hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
create_role.hpp
Go to the documentation of this file.
1 
5 #ifndef IROHA_CREATE_ROLE_HPP
6 #define IROHA_CREATE_ROLE_HPP
7 
8 #include <set>
9 #include <string>
10 #include "model/command.hpp"
11 
12 namespace iroha {
13  namespace model {
14 
18  struct CreateRole : public Command {
22  std::string role_name;
23 
27  std::set<std::string> permissions;
28 
29  bool operator==(const Command &command) const override;
30 
36  CreateRole(const std::string &role_name_,
37  const std::set<std::string> &perms)
38  : role_name(role_name_), permissions(perms) {}
39  };
40  } // namespace model
41 } // namespace iroha
42 #endif // IROHA_CREATE_ROLE_HPP
Definition: command.hpp:14
CreateRole()
Definition: create_role.hpp:31
Definition: create_role.hpp:18
std::string role_name
Definition: create_role.hpp:22
Definition: block_query.hpp:14
std::set< std::string > permissions
Definition: create_role.hpp:27
bool operator==(const Command &command) const override
Definition: model_operators.cpp:64
CreateRole(const std::string &role_name_, const std::set< std::string > &perms)
Definition: create_role.hpp:36