hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
batch_meta.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_BATCH_META_HPP
7 #define IROHA_SHARED_MODEL_BATCH_META_HPP
8 
11 
12 namespace shared_model {
13  namespace interface {
14 
18  class BatchMeta : public ModelPrimitive<BatchMeta> {
19  public:
20  virtual types::BatchType type() const = 0;
21 
22  std::string toString() const override;
23 
25  using ReducedHashesType = std::vector<interface::types::HashType>;
26 
30  virtual const ReducedHashesType &reducedHashes() const = 0;
31 
37  bool operator==(const ModelType &rhs) const override;
38  };
39  } // namespace interface
40 } // namespace shared_model
41 #endif // IROHA_SHARED_MODEL_BATCH_META_HPP
BatchMeta ModelType
Definition: model_primitive.hpp:27
virtual const ReducedHashesType & reducedHashes() const =0
std::vector< interface::types::HashType > ReducedHashesType
type of hashes collection
Definition: batch_meta.hpp:25
std::string toString() const override
Definition: batch_meta.cpp:13
Definition: batch_meta.hpp:18
Definition: model_primitive.hpp:22
bool operator==(const ModelType &rhs) const override
Definition: batch_meta.cpp:22
BatchType
Definition: types.hpp:94
virtual types::BatchType type() const =0
Definition: command_executor.hpp:12