Zserio C++17 runtime library
0.5.0
Built for Zserio 2.17.0
|
#include <JsonTokenizer.h>
Public Types | |
using | allocator_type = ALLOC |
Public Member Functions | |
BasicJsonTokenizer (std::istream &in, const ALLOC &allocator) | |
JsonToken | next () |
JsonToken | getToken () const |
const BasicAny< ALLOC > & | getValue () const |
size_t | getLine () const |
size_t | getColumn () const |
Json Tokenizer used by Json Parser.
Definition at line 57 of file JsonTokenizer.h.
using zserio::BasicJsonTokenizer< ALLOC >::allocator_type = ALLOC |
Definition at line 60 of file JsonTokenizer.h.
|
inline |
Constructor.
in | Input stream to tokenize. |
allocator | Allocator to use. |
Definition at line 68 of file JsonTokenizer.h.
|
inline |
Gets column number of the current token.
Definition at line 125 of file JsonTokenizer.h.
|
inline |
Gets line number of the current token.
Definition at line 115 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 105 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 159 of file JsonTokenizer.h.