hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_roles_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_ROLES_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_PROTO_ROLES_RESPONSE_HPP
8 
11 #include "qry_responses.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15  class RolesResponse final
16  : public CopyableProto<interface::RolesResponse,
17  iroha::protocol::QueryResponse,
18  RolesResponse> {
19  public:
20  template <typename QueryResponseType>
21  explicit RolesResponse(QueryResponseType &&queryResponse);
22 
23  RolesResponse(const RolesResponse &o);
24 
26 
27  const RolesIdType &roles() const override;
28 
29  private:
30  const iroha::protocol::RolesResponse &roles_response_;
31 
32  const RolesIdType roles_;
33  };
34  } // namespace proto
35 } // namespace shared_model
36 
37 #endif // IROHA_SHARED_MODEL_PROTO_ROLES_RESPONSE_HPP
Definition: proto_roles_response.hpp:15
const RolesIdType & roles() const override
Definition: proto_roles_response.cpp:34
RolesResponse(QueryResponseType &&queryResponse)
Definition: proto_roles_response.cpp:14
std::vector< types::RoleIdType > RolesIdType
type of roles collection
Definition: roles_response.hpp:20
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45