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