2021-01-30 08:51:39 +02:00
|
|
|
//
|
|
|
|
// Parser.cpp
|
|
|
|
//
|
|
|
|
// Library: JSON
|
|
|
|
// Package: JSON
|
|
|
|
// Module: Parser
|
|
|
|
//
|
|
|
|
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
|
|
|
|
// and Contributors.
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#include "Poco/JSON/Parser.h"
|
|
|
|
#include "Poco/JSON/JSONException.h"
|
|
|
|
#include "Poco/Ascii.h"
|
|
|
|
#include "Poco/Token.h"
|
|
|
|
#include "Poco/UTF8Encoding.h"
|
|
|
|
#include "Poco/String.h"
|
|
|
|
#undef min
|
|
|
|
#undef max
|
|
|
|
#include <limits>
|
|
|
|
#include <clocale>
|
|
|
|
#include <istream>
|
|
|
|
|
|
|
|
|
|
|
|
namespace Poco {
|
|
|
|
namespace JSON {
|
|
|
|
|
|
|
|
|
2021-08-22 18:07:06 +03:00
|
|
|
Parser::Parser(const Handler::Ptr& pHandler):
|
|
|
|
ParserImpl(pHandler)
|
2021-01-30 08:51:39 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Parser::~Parser()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Parser::setHandler(const Handler::Ptr& pHandler)
|
|
|
|
{
|
|
|
|
setHandlerImpl(pHandler);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} } // namespace Poco::JSON
|