32 AmrProperties(std::string manufacturer, std::string model_name, uint32_t model_number,
33 std::string device_type, std::string friendly_name,
34 std::set<FunctionalityType> functionalities = {})
35 : device_type_(std::move(device_type)),
36 friendly_name_(std::move(friendly_name)),
37 functionalities_(std::move(functionalities)),
38 manufacturer_(std::move(manufacturer)),
39 model_name_(std::move(model_name)),
40 model_number_(model_number) {}
42 explicit AmrProperties(std::string friendly_name) : friendly_name_(std::move(friendly_name)) {}
44 std::string getManufacturer()
const {
return manufacturer_; }
45 std::string getModelName()
const {
return model_name_; }
46 uint32_t getModelNumber()
const {
return model_number_; }
47 std::string getDeviceType()
const {
return device_type_; }
48 std::string getFriendlyName()
const {
return friendly_name_; }
49 std::set<FunctionalityType> getFunctionalities()
const {
return functionalities_; }
51 SERIALIZE(device_type_, friendly_name_, functionalities_, manufacturer_, model_name_,
55 std::string device_type_ =
"none";
56 std::string friendly_name_ =
"none";
57 std::set<FunctionalityType> functionalities_ = {
58 FunctionalityType::kLoad, FunctionalityType::kMoveTo, FunctionalityType::kUnload,
59 FunctionalityType::kNavigate};
60 std::string manufacturer_ =
"none";
61 std::string model_name_ =
"none";
62 uint32_t model_number_ = 0;