danicoin/src/Serialization/JsonInputStreamSerializer.cpp
2016-01-18 15:33:29 +00:00

29 lines
699 B
C++

// Copyright (c) 2011-2016 The Cryptonote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "Serialization/JsonInputStreamSerializer.h"
#include <ctype.h>
#include <exception>
namespace CryptoNote {
namespace {
Common::JsonValue getJsonValueFromStreamHelper(std::istream& stream) {
Common::JsonValue value;
stream >> value;
return value;
}
}
JsonInputStreamSerializer::JsonInputStreamSerializer(std::istream& stream) : JsonInputValueSerializer(getJsonValueFromStreamHelper(stream)) {
}
JsonInputStreamSerializer::~JsonInputStreamSerializer() {
}
} //namespace CryptoNote