1.pair容器的用法:
std::pair<XPR_JSON *,device_info_t> m_deviceInfo; //注释:device_info_t 是结构体,有成员 is_registered、*device_id、*device_name
m_deviceInfo 对象的初始化:
m_deviceInfo.first = info; //注释:XPR_JSON *info
m_deviceInfo.second.device_id = XPR_JSON_XPathGetString(info,"/device_id");
m_deviceInfo.second.device_name = ...