| 766 | } |
| 767 | |
| 768 | std::vector<std::pair<std::string, bool>> ParameterGrp::GetBoolMap(const char* sFilter) const |
| 769 | { |
| 770 | std::vector<std::pair<std::string, bool>> vrValues; |
| 771 | if (!_pGroupNode) { |
| 772 | return vrValues; |
| 773 | } |
| 774 | |
| 775 | std::string Name; |
| 776 | |
| 777 | DOMElement* pcTemp = FindElement(_pGroupNode, "FCBool"); |
| 778 | while (pcTemp) { |
| 779 | Name = StrX(pcTemp->getAttribute(XStrLiteral("Name").unicodeForm())).c_str(); |
| 780 | // check on filter condition |
| 781 | if (!sFilter || Name.find(sFilter) != std::string::npos) { |
| 782 | if (strcmp(StrX(pcTemp->getAttribute(XStrLiteral("Value").unicodeForm())).c_str(), "1") |
| 783 | != 0) { |
| 784 | vrValues.emplace_back(Name, false); |
| 785 | } |
| 786 | else { |
| 787 | vrValues.emplace_back(Name, true); |
| 788 | } |
| 789 | } |
| 790 | pcTemp = FindNextElement(pcTemp, "FCBool"); |
| 791 | } |
| 792 | |
| 793 | return vrValues; |
| 794 | } |
| 795 | |
| 796 | long ParameterGrp::GetInt(const char* Name, long lPreset) const |
| 797 | { |
no test coverage detected