MCPcopy Create free account
hub / github.com/ARM-software/armnn / GetSpecifiedOption

Function GetSpecifiedOption

samples/common/src/Utils/CmdArgsParser.cpp:20–29  ·  view source on GitHub ↗

* Retrieves the user provided option */

Source from the content-addressed store, hash-verified

18 * Retrieves the user provided option
19 */
20std::string GetSpecifiedOption(const std::map<std::string, std::string>& options, const std::string& option)
21{
22 if (CheckOptionSpecified(options, option)){
23 return options.at(option);
24 }
25 else
26 {
27 throw std::invalid_argument("Required option: " + option + " not defined.");
28 }
29}
30
31/*
32 * Parses all the command line options provided by the user and stores in a map.

Callers 4

mainFunction · 0.85
GetFrameSourceAndSinkFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

CheckOptionSpecifiedFunction · 0.85

Tested by

no test coverage detected