class MACAddress

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
mac_addressuint8[]MAC address

Member functions

Function nameReturn typeInput typeDescription
mac_address()const string&voidReturns the current value of mac_address. If mac_address is not set, returns the empty string/empty bytes.
set_mac_address()voidconst string&Sets the value of mac_address. After calling this, mac_address() will return a copy of value.
set_mac_address()voidstring&&(C++11 and beyond): Sets the value of mac_address, moving from the passed string. After calling this, mac_address() will return a copy of value.
set_mac_address()voidconst char*Sets the value of mac_address using a C-style null-terminated string. After calling this, mac_address() will return a copy of value.
mutable_mac_address()string *voidReturns a pointer to the mutable string object that stores mac_address's value. If the field was not set prior to the call, then the returned string will be empty. After calling this, mac_address() will return whatever value is written into the given string.
clear_mac_address()voidvoidClears the value of mac_address. After calling this, mac_address() will return the empty string/empty bytes.
set_allocated_mac_address()voidstring*Sets the string object to the field and frees the previous field value if it exists. If the string pointer is not NULL, the message takes ownership of the allocated string object. The message is free to delete the allocated string object at any time, so references to the object may be invalidated. Otherwise, if the value is NULL, the behavior is the same as calling clear_mac_address().
release_mac_address()string *voidReleases the ownership of mac_address and returns the pointer of the string object. After calling this, caller takes the ownership of the allocated string object and mac_address() will return the empty string/empty bytes.

Parent topic: DeviceConfig (C++)