Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Public Member Functions | Protected Member Functions
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 73 of file RecordParser.h.

Constructor & Destructor Documentation

Construct a record parser.

Definition at line 94 of file RecordParser.h.

~GenericRecordParser ( )
protected

Protected non virtual destructor.

Definition at line 125 of file RecordParser.h.

Member Function Documentation

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

Implements RecordParser.

Definition at line 99 of file RecordParser.h.

void set_delegate ( Delegate delegate)

Set the delegate that processes record parser.

Parameters
delegateThe delegate to set.

Definition at line 116 of file RecordParser.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.