Event consumers

template<typename OIter>
class encode_to

Public Functions

inline explicit constexpr encode_to(OIter out) noexcept

Construct a event consumer that generates json.

Parameters

out – an output iterator to write to

inline explicit constexpr encode_to(std::ostream &os) noexcept

Construct a event consumer that generates json.

Parameters

out – an output stream to write to

template<typename OIter>
class encode_json_to

Public Functions

inline explicit encode_json_to(OIter out, size_t indent = 4)

Construct a event consumer that generates json.

Parameters
  • out – an output iterator to write to

  • indent – level of indentation

inline explicit encode_json_to(std::ostream &os, size_t indent = 4)

Construct a event consumer that generates json.

Parameters
  • os – an output stream to write to

  • indent – level of indentation

template<typename OIter>
class debug_to

Public Functions

inline explicit constexpr debug_to(OIter out) noexcept

Construct a event consumer that print out events.

Parameters

out – an output iterator to write to

inline explicit constexpr debug_to(std::ostream &os) noexcept

Construct a event consumer that print out events.

Parameters

os – an output stream to write to

template<typename Policy = default_bvalue_policy>
class to_bvalue

Public Functions

explicit to_bvalue() = default

Construct an event consumer that generates a bvalue.

inline basic_value_type value()

Returns the bvalue generated by the events.

Returns

A generated bvalue.