for (auto it = inventory_data.begin(); it != inventory_data.end(); it++){ if(it->first == "device_model"){ hardware_info.set ("model", it->second); } if (it->first == "device_serial"){ hardware_info.set ("serialNumber", it->second); } if (it->first == "device_revision"){ hardware_info.set ("revision", it->second); } if (it->first == "imei_number"){ mobile_info.set ("imei", it->second); } if (it->first == "mobile_cellId"){ mobile_info.set ("cellId", it->second); } if (it->first == "mobile_iccid"){ mobile_info.set ("iccid", it->second); } if (it->first == "msisdn"){ mobile_info.set ("msisdn", it->second); } if (it->first == "imsi"){ mobile_info.set ("imsi", it->second); } if (it->first == "mcc"){ mobile_info.set ("mcc", it->second); } if (it->first == "mnc"){ mobile_info.set ("mnc", it->second); } if (it->first == "lac"){ mobile_info.set ("lac", it->second); } }
map
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)