?????????????????????????????????????????????????????????????????????????????渭????????<CONFIG>????????szConfig?校???????LoadConfig???????
//LoadConfig????????????????????????????????????ID?????szProductID???????????????????????pProductDetail?小?
BOOL CConfig::LoadConfig(const CHAR *szConfig)
{
if (NULL == szConfig)
return FALSE;
TiXmlElement element("");
element.Parse(szConfig?? NULL?? TIXML_ENCODING_UTF8);
// ??????????DefaultProduct???????????szProductID?小?
const CHAR *szProductID = TiXmlGetValue(&element?? "DefaultProduct");
if (!szProductID || strcmp(szProductID?? "") == 0)
{
return FALSE;
}
m_strDefaultProduct = szProductID;
// szWebServicesURL ???????未????????????????????????
const CHAR *szWebServicesURL = TiXmlGetValue(&element?? "WebServicesURL");
if (szWebServicesURL)
{
m_strWebServicesURL = szWebServicesURL;
}
//????????????Product???????????????????????????pProductDetail????
TiXmlElement *pProductDetail=element.FirstChildElement("Product");
if (!pProductDetail || !ReadProductDetail(pProductDetail))
{
return FALSE;
}
return TRUE;
}
????ReadProductDetail?????????????product???????????????????pProductDetail????????strProductID??mapVersionInfo???姹�???????.
??????????????????????????锟�???????????????????Product?渭?pProductDetail????????????????????szProductID??szVersion???????????????????????????m_lsProduct??list???2????????????pProductDetail????????????????????????姹�????????szVersion???????ProductID????grayupdate?????姹�??????????????????姹�???????????????????????item?????????????
???????????????????????:
????1???????????????卸??????姹�???????????????????????????
????2???????????14????????????????????????????????????????ID??????????????14?????????4????4?????????????????????????????14???????
????3????????????????????????????
????4??????????????????????????????
????????????????锟�?