Mbed OS Reference
Loading...
Searching...
No Matches
MessageParser::Delegate Struct Reference

Report parsing event to the application. More...

#include <MessageParser.h>

Inheritance diagram for MessageParser::Delegate:
SimpleMessageParser

Public Member Functions

virtual void on_parsing_started ()
 Invoked when parsing as started. More...
 
virtual void on_record_parsed (const Record &record)
 Invoked when a record has been parsed. More...
 
virtual void on_parsing_terminated ()
 Invoked when parsing is over. More...
 
virtual void on_parsing_error (error_t error)
 Invoked when an error is present in the message. More...
 

Protected Member Functions

 ~Delegate ()
 Protected non virtual destructor. More...
 

Detailed Description

Report parsing event to the application.

Definition at line 94 of file MessageParser.h.

Constructor & Destructor Documentation

◆ ~Delegate()

~Delegate ( )
protected

Protected non virtual destructor.

Delegate is not meant to be destroyed in a polymorphic manner.

Definition at line 123 of file MessageParser.h.

Member Function Documentation

◆ on_parsing_started()

virtual void on_parsing_started ( )
virtual

Invoked when parsing as started.

Definition at line 98 of file MessageParser.h.

◆ on_record_parsed()

virtual void on_record_parsed ( const Record record)
virtual

Invoked when a record has been parsed.

Parameters
recordThe record obtained from parsing.

Definition at line 105 of file MessageParser.h.

◆ on_parsing_terminated()

virtual void on_parsing_terminated ( )
virtual

Invoked when parsing is over.

Definition at line 110 of file MessageParser.h.

◆ on_parsing_error()

virtual void on_parsing_error ( error_t  error)
virtual

Invoked when an error is present in the message.

Parameters
errorThe error present in the message.

Definition at line 116 of file MessageParser.h.