Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 903 Bytes

parseObject.md

File metadata and controls

36 lines (22 loc) · 903 Bytes

parseObject

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.

Parameters

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.

Requirements

Handler must be a callable type, and given

  • handler, a value of type Handler
  • key, a value of type Key
  • value, a value of type Value

the following expression must be valid:

handler(key, value)