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 
11 
12 namespace shared_model {
13  namespace interface {
14 
15  class Block;
16 
20  class BlockResponse : public ModelPrimitive<BlockResponse> {
21  public:
25  virtual const Block &block() const = 0;
26 
31  std::string toString() const override;
32 
36  bool operator==(const ModelType &rhs) const override;
37  };
38  } // namespace interface
39 } // namespace shared_model
40 #endif // IROHA_SHARED_MODEL_BLOCK_RESPONSE_HPP
std::string toString() const override
Definition: block_response.cpp:13
Definition: block.hpp:15
Definition: block_response.hpp:20
bool operator==(const ModelType &rhs) const override
Definition: block_response.cpp:20
virtual const Block & block() const =0
Definition: model_primitive.hpp:23
Definition: command_executor.hpp:12