Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Public Member Functions
SimpleMessageParser Class Reference

Basic message parser that aggregates URIParser, TextParser and MimeParser. More...

#include <SimpleMessageParser.h>

Inheritance diagram for SimpleMessageParser:
MessageParser::Delegate

Data Structures

struct  Delegate
 Delegate invoked when the parser raise an event. More...
 

Public Member Functions

 SimpleMessageParser ()
 Construct a new CommonMessageParser. More...
 
void set_delegate (Delegate *delegate)
 Set the handler that processes parsing events. More...
 
void parse (const Span< const uint8_t > &data_buffer)
 Parse an NDEF Message. More...
 
void add_record_parser (RecordParser *parser)
 Insert a new parser in the parser chain. More...
 

Detailed Description

Basic message parser that aggregates URIParser, TextParser and MimeParser.

Custom parsers can be added at runtime as well.

Definition at line 42 of file SimpleMessageParser.h.

Constructor & Destructor Documentation

Construct a new CommonMessageParser.

Member Function Documentation

void add_record_parser ( RecordParser parser)

Insert a new parser in the parser chain.

Parameters
parserThe parser to add in the parsing chain.
void parse ( const Span< const uint8_t > &  data_buffer)

Parse an NDEF Message.

Records and errors are reported to the handler registered with set_event_handler.

Parameters
data_bufferThe data buffer that contains the NDEF message.
void set_delegate ( Delegate delegate)

Set the handler that processes parsing events.

Parameters
delegateThe parsing event handler.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.