hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_block_json_converter.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_BLOCK_JSON_CONVERTER_HPP
7 #define IROHA_PROTO_BLOCK_JSON_CONVERTER_HPP
8 
11 
12 namespace shared_model {
13  namespace interface {
14  class Block;
15  }
16 
17  namespace proto {
19  public:
20  iroha::expected::Result<interface::types::JsonType, std::string>
21  serialize(const interface::Block &block) const noexcept override;
22 
23  iroha::expected::Result<std::unique_ptr<interface::Block>, std::string>
24  deserialize(const interface::types::JsonType &json) const
25  noexcept override;
26  };
27  } // namespace proto
28 } // namespace shared_model
29 
30 #endif // IROHA_PROTO_BLOCK_JSON_CONVERTER_HPP
string(REPLACE".""/"CMAKE_SWIG_OUTDIR ${SWIG_JAVA_PKG}) else() set(CMAKE_SWIG_FLAGS"") endif() myswig_add_library(irohajava LANGUAGE java SOURCES bindings.i) unset(CMAKE_SWIG_FLAGS) swig_link_libraries(irohajava $
Definition: CMakeLists.txt:54
Definition: block.hpp:15
Definition: block_json_converter.hpp:18
Definition: proto_block_json_converter.hpp:18
Definition: command_executor.hpp:12
std::string JsonType
Type of JSON data.
Definition: types.hpp:73