| 532 | } |
| 533 | |
| 534 | std::pair<int, int> InterfaceElement::getVersionIntegers() const |
| 535 | { |
| 536 | const string& versionString = getVersionString(); |
| 537 | StringVec splitVersion = splitString(versionString, "."); |
| 538 | try |
| 539 | { |
| 540 | if (splitVersion.size() == 2) |
| 541 | { |
| 542 | return { std::stoi(splitVersion[0]), std::stoi(splitVersion[1]) }; |
| 543 | } |
| 544 | else if (splitVersion.size() == 1) |
| 545 | { |
| 546 | return { std::stoi(splitVersion[0]), 0 }; |
| 547 | } |
| 548 | } |
| 549 | catch (std::invalid_argument&) |
| 550 | { |
| 551 | } |
| 552 | catch (std::out_of_range&) |
| 553 | { |
| 554 | } |
| 555 | return { 0, 0 }; |
| 556 | } |
| 557 | |
| 558 | void InterfaceElement::registerChildElement(ElementPtr child) |
| 559 | { |
nothing calls this directly
no test coverage detected