hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
block_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_BLOCK_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_BLOCK_RESPONSE_HPP
8 
10 
12 
13 namespace shared_model {
14  namespace interface {
15 
16  class Block;
17 
21  class BlockResponse : public ModelPrimitive<BlockResponse> {
22  public:
26  virtual const Block &block() const = 0;
27 
32  std::string toString() const override;
33 
37  bool operator==(const ModelType &rhs) const override;
38  };
39  } // namespace interface
40 } // namespace shared_model
41 #endif // IROHA_SHARED_MODEL_BLOCK_RESPONSE_HPP
std::string toString() const override
Definition: block_response.cpp:13
BlockResponse ModelType
Definition: model_primitive.hpp:27
Definition: block.hpp:16
Definition: block_response.hpp:21
bool operator==(const ModelType &rhs) const override
Definition: block_response.cpp:20
virtual const Block & block() const =0
Definition: model_primitive.hpp:22
Definition: command_executor.hpp:13