mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-11-24 00:54:26 +01:00
migrate serialization from MoneroUtils to model impls
This commit is contained in:
@@ -62,18 +62,6 @@ namespace MoneroUtils
|
||||
|
||||
string serialize(const boost::property_tree::ptree& node);
|
||||
|
||||
boost::property_tree::ptree toPropertyTree(const MoneroAccount& account);
|
||||
|
||||
boost::property_tree::ptree toPropertyTree(const MoneroSubaddress& subaddress);
|
||||
|
||||
boost::property_tree::ptree toPropertyTree(const MoneroBlock& block);
|
||||
|
||||
boost::property_tree::ptree txToPropertyTree(const MoneroTx& tx);
|
||||
|
||||
boost::property_tree::ptree txWalletToPropertyTree(const MoneroTxWallet& tx);
|
||||
|
||||
boost::property_tree::ptree txRequestToPropertyTree(const MoneroTxRequest& tx);
|
||||
|
||||
// // TODO: template implementation here, could move to MoneroUtils.hpp per https://stackoverflow.com/questions/3040480/c-template-function-compiles-in-header-but-not-implementation
|
||||
template <class T> boost::property_tree::ptree toPropertyTree(const vector<T> types) {
|
||||
cout << "toPropertyTree(types)" << endl;
|
||||
|
||||
Reference in New Issue
Block a user