pd_json.h is missing when installed via CMake in 1.8.0 #1923

This commit is contained in:
Alex Fabijanic
2017-10-06 09:22:55 -05:00
parent 210bc6d30c
commit 7943d95b31
2 changed files with 32 additions and 25 deletions

View File

@@ -28,9 +28,10 @@
#include "Poco/UTF8Encoding.h"
#include "Poco/Dynamic/Var.h"
#include <string>
#include "pd_json.h"
struct json_stream;
namespace Poco {
namespace JSON {
@@ -94,6 +95,9 @@ protected:
/// Returns the result of parsing as Dynamic::Var;
private:
ParserImpl(const ParserImpl&);
ParserImpl& operator =(const ParserImpl&);
void handleArray();
void handleObject();
void handle();
@@ -101,7 +105,7 @@ private:
void stripComments(std::string& json);
bool checkError();
json_stream _json;
json_stream* _pJSON;
Handler::Ptr _pHandler;
int _depth;
char _decimalPoint;
@@ -165,14 +169,6 @@ inline void ParserImpl::setHandlerImpl(const Handler::Ptr& pHandler)
}
inline bool ParserImpl::checkError()
{
const char* err = json_get_error(&_json);
if (err) throw Poco::JSON::JSONException(err);
return true;
}
inline const Handler::Ptr& ParserImpl::getHandlerImpl()
{
return _pHandler;