From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- 21.02/_cxxopts_utils_8hpp_source.xhtml | 114 +++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 21.02/_cxxopts_utils_8hpp_source.xhtml (limited to '21.02/_cxxopts_utils_8hpp_source.xhtml') diff --git a/21.02/_cxxopts_utils_8hpp_source.xhtml b/21.02/_cxxopts_utils_8hpp_source.xhtml new file mode 100644 index 0000000000..17594fa846 --- /dev/null +++ b/21.02/_cxxopts_utils_8hpp_source.xhtml @@ -0,0 +1,114 @@ + + + + + + + + + + + + + +ArmNN: tests/CxxoptsUtils.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CxxoptsUtils.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <cxxopts/cxxopts.hpp>
9 
10 /**
11  * Ensure all mandatory command-line parameters have been passed to cxxopts.
12  * @param result returned from the cxxopts parse(argc, argv) call
13  * @param required vector of strings listing the mandatory parameters to be input from the command-line
14  * @return boolean value - true if all required parameters satisfied, false otherwise
15  * */
16 inline bool CheckRequiredOptions(const cxxopts::ParseResult& result, const std::vector<std::string>& required)
17 {
18  for(const std::string& str : required)
19  {
20  if(result.count(str) == 0)
21  {
22  std::cerr << "--" << str << " parameter is mandatory" << std::endl;
23  return false;
24  }
25  }
26  return true;
27 }
bool CheckRequiredOptions(const cxxopts::ParseResult &result, const std::vector< std::string > &required)
Ensure all mandatory command-line parameters have been passed to cxxopts.
+
+
+ + + + -- cgit v1.2.1