hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_append_role.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_APPEND_ROLE_HPP
7 #define IROHA_PROTO_APPEND_ROLE_HPP
8 
10 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15 
16  class AppendRole final : public CopyableProto<interface::AppendRole,
17  iroha::protocol::Command,
18  AppendRole> {
19  public:
20  template <typename CommandType>
21  explicit AppendRole(CommandType &&command);
22 
23  AppendRole(const AppendRole &o);
24 
25  AppendRole(AppendRole &&o) noexcept;
26 
27  const interface::types::AccountIdType &accountId() const override;
28 
29  const interface::types::RoleIdType &roleName() const override;
30 
31  private:
32  const iroha::protocol::AppendRole &append_role_;
33  };
34 
35  } // namespace proto
36 } // namespace shared_model
37 
38 #endif // IROHA_PROTO_APPEND_ROLE_HPP
const interface::types::RoleIdType & roleName() const override
Definition: proto_append_role.cpp:29
Definition: proto_append_role.hpp:16
std::string AccountIdType
Type of account id.
Definition: types.hpp:35
const interface::types::AccountIdType & accountId() const override
Definition: proto_append_role.cpp:25
AppendRole(CommandType &&command)
Definition: proto_append_role.cpp:12
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:47