Lines Matching refs:handler
11 …stream, it analyze the characters according to the syntax of JSON, and publish events to a handler.
27 While a `Reader` parses this JSON, it publishes the following events to the handler sequentially:
87 MyHandler handler;
90 reader.Parse(ss, handler);
94 Note that, RapidJSON uses template to statically bind the `Reader` type and the handler type, inste…
98 …le showed, user needs to implement a handler, which consumes the events (function calls) from `Rea…
124 …n happens, `strlen(str) < length`. The last `copy` indicates whether the handler needs to make a c…
126 …berCount)`. Note that the `memberCount` parameter is just an aid for the handler, user may not nee…
128 …all `EndArray(SizeType elementCount)`, the parameter `elementCount` is just an aid for the handler.
130 Every handler functions returns a `bool`. Normally it should returns `true`. If the handler encount…
132 …se a JSON with `Reader` and the handler detected that the JSON does not conform to the required sc…
157 …s `wchar_t`. So this `reader`needs to call `String(const wchar_t*, SizeType, bool)` of the handler.
167 bool Parse(InputStream& is, Handler& handler);
171 bool Parse(InputStream& is, Handler& handler);
224 There are two `String()` and `Key()` overloads. One is the same as defined in handler concept with …
234 4. `Writer` implements the event handler concept. It can be used to handle events from `Reader`, `D…
284 `Document`'s parsing capability is completely based on `Reader`. Actually `Document` is a handler w…
347 MessageHandler handler;
349 if (reader.Parse(ss, handler))
350 messages.swap(handler.messages_); // Only change it if success.
395 …vents published by `Reader`. `condense` example simply set a `Writer` as handler of a `Reader`, so…
426 …return out_.String(&buffer_.front(), length, true); // true = output handler need to copy the stri…