Mbed OS Reference
Loading...
Searching...
No Matches
RecordParser Struct Referenceabstract

Parse a record. More...

#include <RecordParser.h>

Inheritance diagram for RecordParser:
GenericRecordParser< MimeParser, Mime > GenericRecordParser< TextParser, Text > GenericRecordParser< URIParser, URI > GenericRecordParser< ParserImplementation, ParsingResult > MimeParser TextParser URIParser

Public Member Functions

 RecordParser ()
 Construct a record parser. More...
 
virtual bool parse (const Record &record)=0
 Parse the record in input. More...
 

Protected Member Functions

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

Detailed Description

Parse a record.

Definition at line 37 of file RecordParser.h.

Constructor & Destructor Documentation

◆ RecordParser()

Construct a record parser.

Definition at line 41 of file RecordParser.h.

◆ ~RecordParser()

~RecordParser ( )
protected

Protected non virtual destructor.

RecordParser subclasses are not meant to be destroyed as RecordParser's.

Definition at line 55 of file RecordParser.h.

Member Function Documentation

◆ parse()

virtual bool parse ( const Record record)
pure virtual

Parse the record in input.

Parameters
recordThe NDEF record to parse.
Returns
true if decoding has succeeded and false otherwise.

Implemented in GenericRecordParser< ParserImplementation, ParsingResult >, GenericRecordParser< MimeParser, Mime >, GenericRecordParser< TextParser, Text >, and GenericRecordParser< URIParser, URI >.