hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_block_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_BLOCK_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_PROTO_BLOCK_RESPONSE_HPP
8 
12 #include "qry_responses.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
16  class BlockResponse final
17  : public CopyableProto<interface::BlockResponse,
18  iroha::protocol::BlockQueryResponse,
19  BlockResponse> {
20  public:
21  template <typename QueryResponseType>
22  explicit BlockResponse(QueryResponseType &&queryResponse);
23 
24  BlockResponse(const BlockResponse &o);
25 
26  BlockResponse(BlockResponse &&o) noexcept;
27 
28  const Block &block() const override;
29 
30  private:
31  const iroha::protocol::BlockResponse &block_response_;
32 
33  const Block block_;
34  };
35  } // namespace proto
36 } // namespace shared_model
37 
38 #endif // IROHA_SHARED_MODEL_PROTO_BLOCK_RESPONSE_HPP
BlockResponse(QueryResponseType &&queryResponse)
Definition: proto_block_response.cpp:12
Definition: proto_block_response.hpp:16
const Block & block() const override
Definition: proto_block_response.cpp:27
Definition: block.hpp:16
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45