Mbed OS Reference
|
Model the well known type URI. More...
#include <URI.h>
Public Types | |
enum | uri_identifier_code_t { } |
Identifier codes. More... | |
Public Member Functions | |
URI () | |
Construct an empty URI object. More... | |
URI (uri_identifier_code_t id, const Span< const uint8_t > &uri_field) | |
Construct a URI from an id and a uri field. More... | |
URI (const URI &to_copy) | |
Construct a URI from another URI. More... | |
~URI () | |
Destroy a URI object. More... | |
URI & | operator= (const URI &to_copy) |
Replace the content by the one of an existing URI. More... | |
void | set_uri (uri_identifier_code_t id, const Span< const uint8_t > &uri_field) |
Replace the value of the URI. More... | |
uri_identifier_code_t | get_id () const |
Return the id of the uri. More... | |
Span< const uint8_t > | get_uri_field () const |
Return the current value of the uri field. More... | |
bool | append_as_record (MessageBuilder &message_builder, bool is_last_record=false) const |
Append into a message builder. More... | |
size_t | get_record_size () const |
Compute the size of this object in a ndef record. More... | |
Identifier codes.
URI | ( | uri_identifier_code_t | id, |
const Span< const uint8_t > & | uri_field | ||
) |
void set_uri | ( | uri_identifier_code_t | id, |
const Span< const uint8_t > & | uri_field | ||
) |
uri_identifier_code_t get_id | ( | ) | const |
Return the id of the uri.
Span< const uint8_t > get_uri_field | ( | ) | const |
Return the current value of the uri field.
bool append_as_record | ( | MessageBuilder & | message_builder, |
bool | is_last_record = false |
||
) | const |
Append into a message builder.
size_t get_record_size | ( | ) | const |
Compute the size of this object in a ndef record.