hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
json_transaction_factory.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_JSON_TRANSACTION_FACTORY_HPP
7 #define IROHA_JSON_TRANSACTION_FACTORY_HPP
8 
10 #include "model/transaction.hpp"
11 
12 namespace iroha {
13  namespace model {
14  namespace converters {
15 
17  public:
18  rapidjson::Document serialize(const Transaction &transaction);
19 
20  boost::optional<Transaction> deserialize(
21  const rapidjson::Value &document);
22 
23  private:
24  JsonCommandFactory factory_;
25  };
26 
27  } // namespace converters
28  } // namespace model
29 } // namespace iroha
30 
31 #endif // IROHA_JSON_TRANSACTION_FACTORY_HPP
rapidjson::Document serialize(const Transaction &transaction)
Definition: json_transaction_factory.cpp:17
Definition: transaction.hpp:26
boost::optional< Transaction > deserialize(const rapidjson::Value &document)
Definition: json_transaction_factory.cpp:51
Definition: json_command_factory.hpp:19
Definition: block_query.hpp:16
Definition: json_transaction_factory.hpp:16