mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 09:12:28 +02:00
pd_json.h is missing when installed via CMake in 1.8.0 #1923
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user