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 
9 #include <numeric>
10 #include <set>
11 
15 
16 namespace shared_model {
17  namespace interface {
21  class CreateRole : public ModelPrimitive<CreateRole> {
22  public:
26  virtual const types::RoleIdType &roleName() const = 0;
27 
31  virtual const RolePermissionSet &rolePermissions() const = 0;
32 
33  std::string toString() const override = 0;
34 
35  bool operator==(const ModelType &rhs) const override;
36  };
37  } // namespace interface
38 } // namespace shared_model
39 
40 #endif // IROHA_SHARED_MODEL_CREATE_ROLE_HPP
std::string toString() const override=0
Definition: permissions.hpp:92
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
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:23
Definition: create_role.hpp:21
Definition: command_executor.hpp:12
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:49