| 840 | } |
| 841 | |
| 842 | std::vector<std::pair<std::string, long>> ParameterGrp::GetIntMap(const char* sFilter) const |
| 843 | { |
| 844 | std::vector<std::pair<std::string, long>> vrValues; |
| 845 | if (!_pGroupNode) { |
| 846 | return vrValues; |
| 847 | } |
| 848 | |
| 849 | std::string Name; |
| 850 | |
| 851 | DOMElement* pcTemp = FindElement(_pGroupNode, "FCInt"); |
| 852 | while (pcTemp) { |
| 853 | Name = StrX(pcTemp->getAttribute(XStrLiteral("Name").unicodeForm())).c_str(); |
| 854 | // check on filter condition |
| 855 | if (!sFilter || Name.find(sFilter) != std::string::npos) { |
| 856 | vrValues.emplace_back( |
| 857 | Name, |
| 858 | (atol(StrX(pcTemp->getAttribute(XStrLiteral("Value").unicodeForm())).c_str())) |
| 859 | ); |
| 860 | } |
| 861 | pcTemp = FindNextElement(pcTemp, "FCInt"); |
| 862 | } |
| 863 | |
| 864 | return vrValues; |
| 865 | } |
| 866 | |
| 867 | unsigned long ParameterGrp::GetUnsigned(const char* Name, unsigned long lPreset) const |
| 868 | { |
no test coverage detected