Mbed OS Reference
Loading...
Searching...
No Matches
GenericRecordParser< ParserImplementation, ParsingResult > Struct Template Reference

GenericRecordParser. More...

#include <RecordParser.h>

Inheritance diagram for GenericRecordParser< ParserImplementation, ParsingResult >:
RecordParser

Data Structures

struct  Delegate
 Handle that receives parsed values. More...
 

Public Member Functions

 GenericRecordParser ()
 Construct a record parser. More...
 
virtual bool parse (const Record &record)
 
void set_delegate (Delegate *delegate)
 Set the delegate that processes record parser. More...
 

Protected Member Functions

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

Detailed Description

template<typename ParserImplementation, typename ParsingResult>
struct mbed::nfc::ndef::GenericRecordParser< ParserImplementation, ParsingResult >

GenericRecordParser.

Template Parameters
ParserImplementationthe implementation type of the parser. It must provides A decoding function named do_parse that accept a const reference to a record and a reference to the type parsed and return a boolean status that indicates the result of the parsing operation.
ParsingResultType produced by the parsing operation when successful.

Definition at line 74 of file RecordParser.h.

Constructor & Destructor Documentation

◆ GenericRecordParser()

Construct a record parser.

Definition at line 95 of file RecordParser.h.

◆ ~GenericRecordParser()

~GenericRecordParser ( )
protected

Protected non virtual destructor.

Definition at line 126 of file RecordParser.h.

Member Function Documentation

◆ parse()

virtual bool parse ( const Record record)
virtual
See also
RecordParser::parse

Implements RecordParser.

Definition at line 100 of file RecordParser.h.

◆ set_delegate()

void set_delegate ( Delegate delegate)

Set the delegate that processes record parser.

Parameters
delegateThe delegate to set.

Definition at line 117 of file RecordParser.h.