danicoin/src/Serialization/JsonInputStreamSerializer.cpp
2015-09-18 11:55:31 +00:00

29 lines
699 B
C++

// Copyright (c) 2011-2015 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