Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions
SimpleMessageParser::Delegate Struct Reference

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

#include <SimpleMessageParser.h>

Public Member Functions

virtual void on_parsing_error (MessageParser::error_t error)
 Invoked when an error is present in the message. More...
 
virtual void on_parsing_started ()
 Invoked when parsing as started. More...
 
virtual void on_text_parsed (const Text &text, const RecordID &id)
 Invoked when a text element has been parsed. More...
 
virtual void on_uri_parsed (const URI &uri, const RecordID &id)
 Invoked when a text element has been parsed. More...
 
virtual void on_mime_parsed (const Mime &mime, const RecordID &id)
 Invoked when a mime element has been parsed. More...
 
virtual void on_unknown_record_parsed (const Record &record)
 Invoked when an unknown record has been parsed. More...
 
virtual void on_parsing_terminated ()
 Invoked when parsing is over. More...
 

Detailed Description

Delegate invoked when the parser raise an event.

Definition at line 51 of file SimpleMessageParser.h.

Member Function Documentation

virtual void on_mime_parsed ( const Mime mime,
const RecordID id 
)
virtual

Invoked when a mime element has been parsed.

Parameters
mimeThe mime object parsed.
idThe RecordId of the mime object.

Definition at line 85 of file SimpleMessageParser.h.

virtual void on_parsing_error ( MessageParser::error_t  error)
virtual

Invoked when an error is present in the message.

Parameters
errorThe error present in the message.

Definition at line 56 of file SimpleMessageParser.h.

virtual void on_parsing_started ( )
virtual

Invoked when parsing as started.

Definition at line 61 of file SimpleMessageParser.h.

virtual void on_parsing_terminated ( )
virtual

Invoked when parsing is over.

Definition at line 96 of file SimpleMessageParser.h.

virtual void on_text_parsed ( const Text text,
const RecordID id 
)
virtual

Invoked when a text element has been parsed.

Parameters
textThe text parsed.
idThe RecordId of the text object.

Definition at line 69 of file SimpleMessageParser.h.

virtual void on_unknown_record_parsed ( const Record record)
virtual

Invoked when an unknown record has been parsed.

Parameters
recordThe record freshly parsed.

Definition at line 91 of file SimpleMessageParser.h.

virtual void on_uri_parsed ( const URI uri,
const RecordID id 
)
virtual

Invoked when a text element has been parsed.

Parameters
uriThe uri parsed.
idThe RecordId of the uri object.

Definition at line 77 of file SimpleMessageParser.h.

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.