| 738 | } |
| 739 | |
| 740 | std::vector<bool> ParameterGrp::GetBools(const char* sFilter) const |
| 741 | { |
| 742 | std::vector<bool> vrValues; |
| 743 | if (!_pGroupNode) { |
| 744 | return vrValues; |
| 745 | } |
| 746 | |
| 747 | std::string Name; |
| 748 | |
| 749 | DOMElement* pcTemp = FindElement(_pGroupNode, "FCBool"); |
| 750 | while (pcTemp) { |
| 751 | Name = StrX(pcTemp->getAttribute(XStrLiteral("Name").unicodeForm())).c_str(); |
| 752 | // check on filter condition |
| 753 | if (!sFilter || Name.find(sFilter) != std::string::npos) { |
| 754 | if (strcmp(StrX(pcTemp->getAttribute(XStrLiteral("Value").unicodeForm())).c_str(), "1") |
| 755 | != 0) { |
| 756 | vrValues.push_back(false); |
| 757 | } |
| 758 | else { |
| 759 | vrValues.push_back(true); |
| 760 | } |
| 761 | } |
| 762 | pcTemp = FindNextElement(pcTemp, "FCBool"); |
| 763 | } |
| 764 | |
| 765 | return vrValues; |
| 766 | } |
| 767 | |
| 768 | std::vector<std::pair<std::string, bool>> ParameterGrp::GetBoolMap(const char* sFilter) const |
| 769 | { |
no test coverage detected