Zserio C++ runtime library
1.1.0
Built for Zserio 2.15.0
|
#include <JsonTokenizer.h>
Public Member Functions | |
BasicJsonTokenizer (std::istream &in, const ALLOC &allocator) | |
JsonToken | next () |
JsonToken | getToken () const |
const AnyHolder< ALLOC > & | getValue () const |
size_t | getLine () const |
size_t | getColumn () const |
Json Tokenizer used by Json Parser.
Definition at line 56 of file JsonTokenizer.h.
|
inline |
Constructor.
in | Input stream to tokenize. |
allocator | Allocator to use. |
Definition at line 65 of file JsonTokenizer.h.
|
inline |
Gets column number of the current token.
Definition at line 122 of file JsonTokenizer.h.
|
inline |
Gets line number of the current token.
Definition at line 112 of file JsonTokenizer.h.
|
inline |
|
inline |
Gets current value.
Any holder can be either unset - i.e. beginning or end of the input, or it can hold one of the types defined in IObserver::visitValue.
Definition at line 102 of file JsonTokenizer.h.
JsonToken zserio::BasicJsonTokenizer< ALLOC >::next |
Move to the next token.
JsonParserException | In case that tokenizing fails - i.e. unknown token is reached. |
Definition at line 156 of file JsonTokenizer.h.