![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
Public Types | |
| typedef std::function< void()> | OnUnknownField |
Public Member Functions | |
| std::string | printPath () const |
| std::string | fieldName () const |
| const char * | fieldNamePtr () const |
| void | pushPath (const JsonPathEntry &entry, int memberNumber=0) |
| void | replacePath (const JsonPathEntry &entry) |
| void | popPath () |
| void | onUnknownField () |
| virtual void | exception (const std::string &message)=0 |
| virtual int | expectInt ()=0 |
| virtual float | expectFloat ()=0 |
| virtual double | expectDouble ()=0 |
| virtual bool | expectBool ()=0 |
| virtual bool | matchUnsignedLongLong (unsigned long long &val)=0 |
| virtual bool | matchLongLong (long long &val)=0 |
| virtual std::string | expectStringAscii ()=0 |
| virtual Utf8String | expectStringUtf8 ()=0 |
| virtual Json::Value | expectJson ()=0 |
| virtual void | expectNull ()=0 |
| virtual bool | isObject () const =0 |
| virtual bool | isString () const =0 |
| virtual bool | isArray () const =0 |
| virtual bool | isBool () const =0 |
| virtual bool | isNumber () const =0 |
| virtual bool | isNull () const =0 |
| virtual void | skip ()=0 |
| virtual void | forEachMember (const std::function< void()> &fn)=0 |
| virtual void | forEachElement (const std::function< void()> &fn)=0 |
Public Attributes | |
| JsonPath | path |
| std::vector< OnUnknownField > | onUnknownFieldHandlers |
Definition at line 99 of file json_parsing.h.
| virtual void Datacratic::JsonParsingContext::exception | ( | const std::string & | message | ) | [pure virtual] |
Handler for when we get an undexpected field.
Implemented in Datacratic::StructuredJsonParsingContext, and Datacratic::StreamingJsonParsingContext.
1.7.6.1