MCPcopy Create free account
hub / github.com/Barracuda09/SATPI / getIntParameter

Method getIntParameter

src/StringConverter.cpp:383–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383int StringConverter::getIntParameter(const std::string &msg, const std::string &header_field, const std::string &parameter) {
384 const std::string val = StringConverter::getStringParameter(msg, header_field, parameter);
385 return val.empty() ? -1 : std::stoi(val);
386}
387
388input::InputSystem StringConverter::getMSYSParameter(const std::string &msg, const std::string &header_field) {
389 const std::string val = StringConverter::getStringParameter(msg, header_field, "msys=");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected