xref: /aosp_15_r20/test/dittosuite/include/ditto/arg_parser.h (revision 6fa2df46f119dce7527f5beb2814eca0e6f886ac)
1*6fa2df46SAndroid Build Coastguard Worker // Copyright (C) 2021 The Android Open Source Project
2*6fa2df46SAndroid Build Coastguard Worker //
3*6fa2df46SAndroid Build Coastguard Worker // Licensed under the Apache License, Version 2.0 (the "License");
4*6fa2df46SAndroid Build Coastguard Worker // you may not use this file except in compliance with the License.
5*6fa2df46SAndroid Build Coastguard Worker // You may obtain a copy of the License at
6*6fa2df46SAndroid Build Coastguard Worker //
7*6fa2df46SAndroid Build Coastguard Worker //      http://www.apache.org/licenses/LICENSE-2.0
8*6fa2df46SAndroid Build Coastguard Worker //
9*6fa2df46SAndroid Build Coastguard Worker // Unless required by applicable law or agreed to in writing, software
10*6fa2df46SAndroid Build Coastguard Worker // distributed under the License is distributed on an "AS IS" BASIS,
11*6fa2df46SAndroid Build Coastguard Worker // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*6fa2df46SAndroid Build Coastguard Worker // See the License for the specific language governing permissions and
13*6fa2df46SAndroid Build Coastguard Worker // limitations under the License.
14*6fa2df46SAndroid Build Coastguard Worker 
15*6fa2df46SAndroid Build Coastguard Worker #pragma once
16*6fa2df46SAndroid Build Coastguard Worker 
17*6fa2df46SAndroid Build Coastguard Worker #include <ditto/logger.h>
18*6fa2df46SAndroid Build Coastguard Worker #include <ditto/parser.h>
19*6fa2df46SAndroid Build Coastguard Worker #include <ditto/result.h>
20*6fa2df46SAndroid Build Coastguard Worker 
21*6fa2df46SAndroid Build Coastguard Worker namespace dittosuite {
22*6fa2df46SAndroid Build Coastguard Worker struct CmdArguments {
23*6fa2df46SAndroid Build Coastguard Worker   ResultsOutput results_output = ResultsOutput::kReport;
24*6fa2df46SAndroid Build Coastguard Worker   std::string file_path;
25*6fa2df46SAndroid Build Coastguard Worker   std::string embedded_benchmark;
26*6fa2df46SAndroid Build Coastguard Worker   std::vector<std::string> parameters;
27*6fa2df46SAndroid Build Coastguard Worker };
28*6fa2df46SAndroid Build Coastguard Worker CmdArguments ParseArguments(int argc, char** argv);
29*6fa2df46SAndroid Build Coastguard Worker ResultsOutput ArgToResultsOutput(const std::string_view optarg);
30*6fa2df46SAndroid Build Coastguard Worker 
31*6fa2df46SAndroid Build Coastguard Worker }  // namespace dittosuite
32