hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
block_json_deserializer.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_BLOCK_JSON_DESERIALIZER_HPP
7 #define IROHA_BLOCK_JSON_DESERIALIZER_HPP
8 
9 #include <memory>
10 
11 #include "common/result.hpp"
13 
14 namespace shared_model {
15  namespace interface {
16  class Block;
22  public:
28  virtual iroha::expected::Result<std::unique_ptr<Block>, std::string>
29  deserialize(const types::JsonType &json) const = 0;
30 
31  virtual ~BlockJsonDeserializer() = default;
32  };
33  } // namespace interface
34 } // namespace shared_model
35 
36 #endif // IROHA_BLOCK_JSON_DESERIALIZER_HPP
virtual iroha::expected::Result< std::unique_ptr< Block >, std::string > deserialize(const types::JsonType &json) const =0
Definition: block_json_deserializer.hpp:21
Definition: command_executor.hpp:12
std::string JsonType
Type of JSON data.
Definition: types.hpp:71