hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
transaction_batch_parser.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_TRANSACTION_BATCH_PARSER_HPP
7 #define IROHA_TRANSACTION_BATCH_PARSER_HPP
8 
11 
12 namespace shared_model {
13  namespace interface {
14 
19  public:
20  virtual std::vector<types::TransactionsForwardCollectionType>
22  noexcept = 0;
23 
24  virtual std::vector<types::TransactionsCollectionType> parseBatches(
25  types::TransactionsCollectionType txs) const noexcept = 0;
26 
27  virtual std::vector<types::SharedTxsCollectionType> parseBatches(
28  const types::SharedTxsCollectionType &txs) const noexcept = 0;
29 
30  virtual ~TransactionBatchParser() = default;
31  };
32 
33  } // namespace interface
34 } // namespace shared_model
35 
36 #endif // IROHA_TRANSACTION_BATCH_PARSER_HPP
virtual std::vector< types::TransactionsForwardCollectionType > parseBatches(types::TransactionsForwardCollectionType txs) const noexcept=0
boost::any_range< Transaction, boost::forward_traversal_tag, const Transaction & > TransactionsForwardCollectionType
Definition: transaction_sequence_common.hpp:25
Definition: transaction_batch_parser.hpp:18
Definition: command_executor.hpp:12
std::vector< std::shared_ptr< Transaction >> SharedTxsCollectionType
Definition: transaction_sequence_common.hpp:27
boost::any_range< Transaction, boost::random_access_traversal_tag, const Transaction & > TransactionsCollectionType
Type of transactions&#39; collection.
Definition: range_types.hpp:29