Android-cuttlefish cvd tool
arguments_separator.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19#include <optional>
20#include <string>
21#include <vector>
22
24
25namespace cuttlefish {
26namespace selector {
27
29 std::string prog_path;
30 std::vector<std::string> cvd_args;
31 std::optional<std::string> sub_cmd;
32 std::vector<std::string> sub_cmd_args;
33};
34
56 const std::vector<std::string>& input_args);
57
58} // namespace selector
59} // namespace cuttlefish
Definition: expected.h:86
Result< SeparatedArguments > SeparateArguments(const std::vector< std::string > &input_args)
Definition: arguments_separator.cpp:42
Definition: alloc_utils.cpp:23
Definition: arguments_separator.h:28
std::optional< std::string > sub_cmd
Definition: arguments_separator.h:31
std::vector< std::string > cvd_args
Definition: arguments_separator.h:30
std::vector< std::string > sub_cmd_args
Definition: arguments_separator.h:32
std::string prog_path
Definition: arguments_separator.h:29