RESTinio
Loading...
Searching...
No Matches
Public Types | Static Public Attributes | List of all members
restinio::easy_parser::impl::transformer_tag< Result_Type > Struct Template Reference

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

#include <easy_parser.hpp>

Public Types

using result_type = Result_Type
 

Static Public Attributes

static constexpr entity_type_t entity_type = entity_type_t::transformer
 

Detailed Description

template<typename Result_Type>
struct restinio::easy_parser::impl::transformer_tag< Result_Type >

A special base class to be used with transformers.

Every transformer class should have the following content:

{
public:
using result_type = ... // some transformer-specific type.
static constexpr entity_type_t entity_type = entity_type_t::transformer;
transform(Input_Type && from);
...
};
entity_type_t
A marker for distinguish different kind of entities in parser.
run_on_this_thread_settings_t< Traits > on_this_thread()
A special marker for the case when http_server must be run on the context of the current thread.

where Input_Type is transformer's specific types.

Since
v.0.6.1

Definition at line 999 of file easy_parser.hpp.

Member Typedef Documentation

◆ result_type

Definition at line 1001 of file easy_parser.hpp.

Member Data Documentation

◆ entity_type

Definition at line 1002 of file easy_parser.hpp.


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