hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_transaction_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_TRANSACTION_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_PROTO_TRANSACTION_RESPONSE_HPP
8 
13 #include "qry_responses.pb.h"
14 
15 namespace shared_model {
16  namespace proto {
18  : public CopyableProto<interface::TransactionsResponse,
19  iroha::protocol::QueryResponse,
20  TransactionsResponse> {
21  public:
22  template <typename QueryResponseType>
23  explicit TransactionsResponse(QueryResponseType &&queryResponse);
24 
26 
28 
30  const override;
31 
32  private:
33  const iroha::protocol::TransactionsResponse &transaction_response_;
34 
35  const std::vector<proto::Transaction> transactions_;
36  };
37  } // namespace proto
38 } // namespace shared_model
39 
40 #endif // IROHA_SHARED_MODEL_PROTO_TRANSACTION_RESPONSE_HPP
TransactionsResponse(QueryResponseType &&queryResponse)
Definition: proto_transaction_response.cpp:12
Definition: proto_transaction_response.hpp:17
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45
interface::types::TransactionsCollectionType transactions() const override
Definition: proto_transaction_response.cpp:33
boost::any_range< Transaction, boost::random_access_traversal_tag, const Transaction & > TransactionsCollectionType
Type of transactions&#39; collection.
Definition: range_types.hpp:29