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
9
#include "
interfaces/common_objects/types.hpp
"
10
#include "
interfaces/iroha_internal/block_json_converter.hpp
"
11
12
namespace
shared_model
{
13
namespace
interface {
14
class
Block;
15
}
16
17
namespace
proto {
18
class
ProtoBlockJsonConverter
:
public
interface::BlockJsonConverter
{
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
iroha::expected::Result
Definition:
result_fwd.hpp:27
types.hpp
block_json_converter.hpp
shared_model::interface::Block
Definition:
block.hpp:16
shared_model::interface::BlockJsonConverter
Definition:
block_json_converter.hpp:18
shared_model::proto::ProtoBlockJsonConverter
Definition:
proto_block_json_converter.hpp:18
shared_model
Definition:
command_executor.hpp:13
shared_model::interface::types::JsonType
std::string JsonType
Type of JSON data.
Definition:
types.hpp:79
shared_model
backend
protobuf
proto_block_json_converter.hpp
Generated by
1.8.13