| 916 | } |
| 917 | |
| 918 | std::vector<std::pair<std::string, unsigned long>> ParameterGrp::GetUnsignedMap(const char* sFilter) const |
| 919 | { |
| 920 | std::vector<std::pair<std::string, unsigned long>> vrValues; |
| 921 | if (!_pGroupNode) { |
| 922 | return vrValues; |
| 923 | } |
| 924 | |
| 925 | std::string Name; |
| 926 | const int base = 10; |
| 927 | |
| 928 | DOMElement* pcTemp = FindElement(_pGroupNode, "FCUInt"); |
| 929 | while (pcTemp) { |
| 930 | Name = StrX(pcTemp->getAttribute(XStrLiteral("Name").unicodeForm())).c_str(); |
| 931 | // check on filter condition |
| 932 | if (!sFilter || Name.find(sFilter) != std::string::npos) { |
| 933 | vrValues.emplace_back( |
| 934 | Name, |
| 935 | (strtoul( |
| 936 | StrX(pcTemp->getAttribute(XStrLiteral("Value").unicodeForm())).c_str(), |
| 937 | nullptr, |
| 938 | base |
| 939 | )) |
| 940 | ); |
| 941 | } |
| 942 | pcTemp = FindNextElement(pcTemp, "FCUInt"); |
| 943 | } |
| 944 | |
| 945 | return vrValues; |
| 946 | } |
| 947 | |
| 948 | double ParameterGrp::GetFloat(const char* Name, double dPreset) const |
| 949 | { |
no test coverage detected