ESPHome  2024.10.2
Public Member Functions | Protected Attributes
esphome::nfc::NdefRecordUri Class Reference

#include <ndef_record_uri.h>

Inheritance diagram for esphome::nfc::NdefRecordUri:
esphome::nfc::NdefRecord

Public Member Functions

 NdefRecordUri ()
 
 NdefRecordUri (const std::vector< uint8_t > &payload)
 
 NdefRecordUri (const std::string &uri)
 
 NdefRecordUri (const std::string &uri, const std::string &id)
 
 NdefRecordUri (const NdefRecordUri &)=default
 
std::unique_ptr< NdefRecordclone () const override
 
void set_uri (const std::string &uri)
 
std::vector< uint8_t > get_encoded_payload () override
 
const std::string & get_payload () const override
 
- Public Member Functions inherited from esphome::nfc::NdefRecord
 NdefRecord ()
 
 NdefRecord (std::vector< uint8_t > payload_data)
 
void set_tnf (uint8_t tnf)
 
void set_type (const std::string &type)
 
void set_payload (const std::string &payload)
 
void set_id (const std::string &id)
 
 NdefRecord (const NdefRecord &)=default
 
virtual ~NdefRecord ()
 
uint32_t get_encoded_size ()
 
std::vector< uint8_t > encode (bool first, bool last)
 
uint8_t create_flag_byte (bool first, bool last, size_t payload_size)
 
const std::string & get_type () const
 
const std::string & get_id () const
 

Protected Attributes

std::string uri_
 
- Protected Attributes inherited from esphome::nfc::NdefRecord
uint8_t tnf_
 
std::string type_
 
std::string id_
 
std::string payload_
 

Detailed Description

Definition at line 50 of file ndef_record_uri.h.

Constructor & Destructor Documentation

◆ NdefRecordUri() [1/5]

esphome::nfc::NdefRecordUri::NdefRecordUri ( )
inline

Definition at line 52 of file ndef_record_uri.h.

◆ NdefRecordUri() [2/5]

esphome::nfc::NdefRecordUri::NdefRecordUri ( const std::vector< uint8_t > &  payload)

Definition at line 8 of file ndef_record_uri.cpp.

◆ NdefRecordUri() [3/5]

esphome::nfc::NdefRecordUri::NdefRecordUri ( const std::string &  uri)
inline

Definition at line 54 of file ndef_record_uri.h.

◆ NdefRecordUri() [4/5]

esphome::nfc::NdefRecordUri::NdefRecordUri ( const std::string &  uri,
const std::string &  id 
)
inline

Definition at line 59 of file ndef_record_uri.h.

◆ NdefRecordUri() [5/5]

esphome::nfc::NdefRecordUri::NdefRecordUri ( const NdefRecordUri )
default

Member Function Documentation

◆ clone()

std::unique_ptr<NdefRecord> esphome::nfc::NdefRecordUri::clone ( ) const
inlineoverridevirtual

Reimplemented from esphome::nfc::NdefRecord.

Definition at line 66 of file ndef_record_uri.h.

◆ get_encoded_payload()

std::vector< uint8_t > esphome::nfc::NdefRecordUri::get_encoded_payload ( )
overridevirtual

Reimplemented from esphome::nfc::NdefRecord.

Definition at line 27 of file ndef_record_uri.cpp.

◆ get_payload()

const std::string& esphome::nfc::NdefRecordUri::get_payload ( ) const
inlineoverridevirtual

Reimplemented from esphome::nfc::NdefRecord.

Definition at line 71 of file ndef_record_uri.h.

◆ set_uri()

void esphome::nfc::NdefRecordUri::set_uri ( const std::string &  uri)
inline

Definition at line 68 of file ndef_record_uri.h.

Field Documentation

◆ uri_

std::string esphome::nfc::NdefRecordUri::uri_
protected

Definition at line 71 of file ndef_record_uri.h.


The documentation for this class was generated from the following files: