RESTinio
Static Public Attributes | List of all members
restinio::easy_parser::impl::consumer_tag Struct Reference

A special base class to be used with consumers. More...

#include <easy_parser.hpp>

Inheritance diagram for restinio::easy_parser::impl::consumer_tag:
restinio::easy_parser::impl::any_value_skipper_t restinio::easy_parser::impl::as_result_consumer_t restinio::easy_parser::impl::custom_consumer_t< C > restinio::easy_parser::impl::field_setter_consumer_t< F, C > restinio::easy_parser::impl::just_result_consumer_t< Result_Type > restinio::easy_parser::impl::to_container_consumer_t restinio::easy_parser::impl::tuple_item_consumer_t< Index > restinio::http_field_parsers::details::pct_encoded_symbols_consumer_t restinio::http_field_parsers::impl::qvalue_producer_t::digit_consumer_t

Static Public Attributes

static constexpr entity_type_t entity_type = entity_type_t::consumer
 

Detailed Description

A special base class to be used with consumers.

Every consumer class should have the following content:

class some_consumer_type
{
public :
void consume( Target_Type & dest, Value && current_value );
...
};
entity_type_t
A marker for distinguish different kind of entities in parser.
@ consumer
Entity is a consumer of values. It requires a value on the input and doesn't produces anything.
static constexpr entity_type_t entity_type

where Target_Type and Value are consumer's specific types.

Since
v.0.6.1

Definition at line 1342 of file easy_parser.hpp.

Member Data Documentation

◆ entity_type

constexpr entity_type_t restinio::easy_parser::impl::consumer_tag::entity_type = entity_type_t::consumer
staticconstexpr

Definition at line 1344 of file easy_parser.hpp.


The documentation for this struct was generated from the following file: