RESTinio
Public Member Functions | Private Attributes | List of all members
restinio::http_field_parsers::impl::maybe_empty_comma_separated_list_producer_t< Container, Element_Producer > Class Template Reference

A template for a producer that handles possibly empty list of comma-separated values. More...

#include <basics.hpp>

Inheritance diagram for restinio::http_field_parsers::impl::maybe_empty_comma_separated_list_producer_t< Container, Element_Producer >:
restinio::easy_parser::impl::producer_tag< Container >

Public Member Functions

 maybe_empty_comma_separated_list_producer_t (Element_Producer &&element)
 
RESTINIO_NODISCARD expected_t< result_type, parse_error_ttry_parse (source_t &from)
 

Private Attributes

Element_Producer m_element
 

Additional Inherited Members

- Public Types inherited from restinio::easy_parser::impl::producer_tag< Container >
using result_type = Container
 
- Static Public Attributes inherited from restinio::easy_parser::impl::producer_tag< Container >
static constexpr entity_type_t entity_type
 

Detailed Description

template<typename Container, typename Element_Producer>
class restinio::http_field_parsers::impl::maybe_empty_comma_separated_list_producer_t< Container, Element_Producer >

A template for a producer that handles possibly empty list of comma-separated values.

That producer handles the following rule:

#element => [ ( "," / element ) *( OWS "," [ OWS element ] ) ]

See: https://tools.ietf.org/html/rfc7230 (section "7. ABNF List Extension: #rule")

Template Parameters
Containerthe type of container to be produced.
Element_Producerthe type of the producer of a single item.
Since
v.0.6.1

Definition at line 1380 of file basics.hpp.

Constructor & Destructor Documentation

◆ maybe_empty_comma_separated_list_producer_t()

template<typename Container , typename Element_Producer >
restinio::http_field_parsers::impl::maybe_empty_comma_separated_list_producer_t< Container, Element_Producer >::maybe_empty_comma_separated_list_producer_t ( Element_Producer &&  element)
inline

Definition at line 1391 of file basics.hpp.

Member Function Documentation

◆ try_parse()

template<typename Container , typename Element_Producer >
RESTINIO_NODISCARD expected_t< result_type, parse_error_t > restinio::http_field_parsers::impl::maybe_empty_comma_separated_list_producer_t< Container, Element_Producer >::try_parse ( source_t from)
inline

Definition at line 1398 of file basics.hpp.

Member Data Documentation

◆ m_element

template<typename Container , typename Element_Producer >
Element_Producer restinio::http_field_parsers::impl::maybe_empty_comma_separated_list_producer_t< Container, Element_Producer >::m_element
private

Definition at line 1386 of file basics.hpp.


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