template<typename Handler>
void parseObject(Context& ctx, Handler handler);
template<typename Handler>
void parseObject(Context& ctx, Handler handler, ErrorCode& ec);
Required header: <Eclog/Parse.h>
The parseObject function parses the current object from the input source and reports the encountered top-level key-value pairs to a user-defined handler.
Context&
ctx The parsing context.
Handler
handler The handler to be called when a key-value pair is encountered.
ErrorCode&
ec Set to indicate what error occurred, if any.
Handler
must be a callable type, and given
the following expression must be valid:
handler(key, value)