class ModelNumber

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
model_numberstringModel number of size 25 including null character

Member functions

Function nameReturn typeInput typeDescription
model_number()const string&voidReturns the current value of model_number. If model_number is not set, returns the empty string/empty bytes.
set_model_number()voidconst string&Sets the value of model_number. After calling this, model_number() will return a copy of value.
set_model_number()voidstring&&(C++11 and beyond): Sets the value of model_number, moving from the passed string. After calling this, model_number() will return a copy of value.
set_model_number()voidconst char*Sets the value of model_number using a C-style null-terminated string. After calling this, model_number() will return a copy of value.
mutable_model_number()string *voidReturns a pointer to the mutable string object that stores model_number's value. If the field was not set prior to the call, then the returned string will be empty. After calling this, model_number() will return whatever value is written into the given string.
clear_model_number()voidvoidClears the value of model_number. After calling this, model_number() will return the empty string/empty bytes.
set_allocated_model_number()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_model_number().
release_model_number()string *voidReleases the ownership of model_number and returns the pointer of the string object. After calling this, caller takes the ownership of the allocated string object and model_number() will return the empty string/empty bytes.

Parent topic: DeviceConfig (C++)