hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_query_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_QUERY_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_PROTO_QUERY_RESPONSE_HPP
8 
10 
11 #include "qry_responses.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15  class QueryResponse final : public interface::QueryResponse {
16  public:
18 
19  QueryResponse(const QueryResponse &o);
20  QueryResponse(QueryResponse &&o) noexcept;
21 
22  explicit QueryResponse(const TransportType &queryResponse);
23  explicit QueryResponse(TransportType &&queryResponse);
24 
25  ~QueryResponse() override;
26 
27  const QueryResponseVariantType &get() const override;
28 
29  const interface::types::HashType &queryHash() const override;
30 
31  const TransportType &getTransport() const;
32 
33  protected:
34  QueryResponse *clone() const override;
35 
36  private:
37  struct Impl;
38  std::unique_ptr<Impl> impl_;
39  };
40  } // namespace proto
41 } // namespace shared_model
42 
43 #endif // IROHA_SHARED_MODEL_PROTO_QUERY_RESPONSE_HPP
const interface::types::HashType & queryHash() const override
Definition: proto_query_response.cpp:82
Definition: proto_query_response.hpp:15
Definition: hash.hpp:18
iroha::protocol::QueryResponse TransportType
Definition: proto_query_response.hpp:17
Definition: peer.hpp:48
Definition: query_response.hpp:33
Definition: range_types.hpp:19
QueryResponse * clone() const override
Definition: proto_query_response.cpp:90
QueryResponse(const QueryResponse &o)
Definition: proto_query_response.cpp:65
const QueryResponseVariantType & get() const override
Definition: proto_query_response.cpp:78
w< AccountAssetResponse, AccountDetailResponse, AccountResponse, ErrorQueryResponse, SignatoriesResponse, TransactionsResponse, AssetResponse, RolesResponse, RolePermissionsResponse, TransactionsPageResponse, BlockResponse > QueryResponseVariantType
Type of container with all concrete query response.
Definition: query_response.hpp:51
const TransportType & getTransport() const
Definition: proto_query_response.cpp:86
Definition: command_executor.hpp:12