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 {
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
string(REPLACE".""/"CMAKE_SWIG_OUTDIR ${SWIG_JAVA_PKG}) else() set(CMAKE_SWIG_FLAGS"") endif() myswig_add_library(irohajava LANGUAGE java SOURCES bindings.i) unset(CMAKE_SWIG_FLAGS) swig_link_libraries(irohajava $
Definition: CMakeLists.txt:54
std::string role_name
Definition: create_role.hpp:22
Definition: block_query.hpp:16
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