• TinyXML枚举节点


    TiXmlDocument *pdoc=new TiXmlDocument;
        std::string szXMLFile="e:\\64.xml";
        bool rs= pdoc->LoadFile(szXMLFile);

        TiXmlElement *pXMLNode = pdoc->FirstChildElement("HOOK");
        TiXmlElement* xOption = pXMLNode->FirstChildElement();
        for ( ; xOption; xOption = xOption->NextSiblingElement() )
        {
            TiXmlElement* xOption2 = xOption->FirstChildElement();
            for (;xOption2;xOption2=xOption2->NextSiblingElement())
            {
                std::string DLLName = xOption->Value();
                std::string Func = xOption2->GetText();
                std::string ParamType = xOption2->Attribute("Paramtype");
                std::string ParamValue="";
                if (ParamType!="0")
                {
                    ParamValue = xOption2->Attribute("Value");
                 }

                RunFunc(DLLName,Func,ParamType,ParamValue);
                
            }
        }
  • 相关阅读:
    .NET 4.6.1 给cookie添加属性
    Blog目录
    1019 数字黑洞
    1018 锤子剪刀布
    1017 A除以B
    1016 部分A+B
    1015 德才论
    1014 福尔摩斯的约会
    1013 数素数
    1012 数字分类
  • 原文地址:https://www.cnblogs.com/ahuo/p/2394293.html
Copyright © 2020-2023  润新知