Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: NFC M2M_2016_STM32 MyongjiElec_capstone1 IDW01M1_Cloud_IBM ... more
Fork of NDefLib by
EmptyRecord Class Reference
Define an empty Record. More...
#include <EmptyRecord.h>
Inherits NDefLib::Record.
Public Types | |
| enum | RecordType_t { TYPE_UNKNOWN, TYPE_TEXT, TYPE_AAR, TYPE_MIME, TYPE_URI, TYPE_URI_MAIL, TYPE_URI_SMS, TYPE_URI_GEOLOCATION, TYPE_MIME_VCARD, TYPE_WIFI_CONF } |
Enum used to identify the record type. More... | |
Public Member Functions | |
| virtual uint16_t | write (uint8_t *buffer) |
| Write the 3 bytes used to define an empty record. | |
| void | set_as_first_record () |
| Set the record as the first record in the message. | |
| void | set_as_last_record () |
| Set the record as the last record in the message. | |
| bool | is_last_record () const |
| Check if it is the last record in the message. | |
| bool | is_first_record () const |
| Check if it is the first record in the message. | |
| void | set_as_middle_record () |
| Set the record as generic (not the first one and not the last one) | |
| bool | is_middle_record () const |
| Check if the record is in the middle of a chain. | |
| virtual RecordType_t | get_type () const |
| Get tag type. | |
| const RecordHeader & | get_header () const |
| Get the record header. | |
| virtual uint16_t | get_byte_length () |
| Number of bytes needed to store this record. | |
Detailed Description
Define an empty Record.
Definition at line 48 of file EmptyRecord.h.
Member Enumeration Documentation
enum RecordType_t [inherited] |
Enum used to identify the record type.
- Enumerator:
Member Function Documentation
| virtual uint16_t get_byte_length | ( | ) | [virtual, inherited] |
Number of bytes needed to store this record.
- Returns:
- size of the header + size of the record content
Reimplemented in RecordURI, RecordVCard, and RecordWifiConf.
| const RecordHeader& get_header | ( | ) | const [inherited] |
| virtual RecordType_t get_type | ( | ) | const [virtual, inherited] |
Get tag type.
- This method should be overridden to return a valid type.
- Returns:
- tag type
Reimplemented in RecordAAR, RecordGeo, RecordMail, RecordMimeType, RecordSMS, RecordText, RecordURI, RecordVCard, and RecordWifiConf.
| bool is_first_record | ( | ) | const [inherited] |
| bool is_last_record | ( | ) | const [inherited] |
| bool is_middle_record | ( | ) | const [inherited] |
| void set_as_first_record | ( | ) | [inherited] |
| void set_as_last_record | ( | ) | [inherited] |
| void set_as_middle_record | ( | ) | [inherited] |
| virtual uint16_t write | ( | uint8_t * | buffer ) | [virtual] |
Write the 3 bytes used to define an empty record.
- Parameters:
-
[out] buffer Buffer to write the record into.
- Returns:
- number of write bytes
Implements Record.
Definition at line 64 of file EmptyRecord.h.
Generated on Tue Jul 12 2022 14:14:49 by
1.7.2
