![]() |
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. | |
| URI (uri_identifier_code_t id, const Span< const uint8_t > &uri_field) | |
| Construct a URI from an id and a uri field. | |
| URI (const URI &to_copy) | |
| Construct a URI from another URI. | |
| ~URI () | |
| Destroy a URI object. | |
| URI & | operator= (const URI &to_copy) |
| Replace the content by the one of an existing URI. | |
| void | set_uri (uri_identifier_code_t id, const Span< const uint8_t > &uri_field) |
| Replace the value of the URI. | |
| 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. | |
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.