| 993 | } |
| 994 | |
| 995 | std::vector<std::pair<std::string, double>> ParameterGrp::GetFloatMap(const char* sFilter) const |
| 996 | { |
| 997 | std::vector<std::pair<std::string, double>> vrValues; |
| 998 | if (!_pGroupNode) { |
| 999 | return vrValues; |
| 1000 | } |
| 1001 | |
| 1002 | std::string Name; |
| 1003 | |
| 1004 | DOMElement* pcTemp = FindElement(_pGroupNode, "FCFloat"); |
| 1005 | while (pcTemp) { |
| 1006 | Name = StrX(pcTemp->getAttribute(XStrLiteral("Name").unicodeForm())).c_str(); |
| 1007 | // check on filter condition |
| 1008 | if (!sFilter || Name.find(sFilter) != std::string::npos) { |
| 1009 | vrValues.emplace_back( |
| 1010 | Name, |
| 1011 | (atof(StrX(pcTemp->getAttribute(XStrLiteral("Value").unicodeForm())).c_str())) |
| 1012 | ); |
| 1013 | } |
| 1014 | pcTemp = FindNextElement(pcTemp, "FCFloat"); |
| 1015 | } |
| 1016 | |
| 1017 | return vrValues; |
| 1018 | } |
| 1019 | |
| 1020 | |
| 1021 | void ParameterGrp::SetASCII(const char* Name, const char* sValue) |
no test coverage detected