Android-cuttlefish cvd tool
mcu_config_path.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 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#pragma once
17
18#include <stddef.h>
19
20#include <string>
21#include <vector>
22
23#include <json/value.h>
24
26
27namespace cuttlefish {
28
30 public:
32
34
35 private:
36 explicit McuConfigPathFlag(std::vector<std::string> mcu_config_paths);
37
38 std::string PathForIndex(size_t argument_index) const;
39
40 std::vector<std::string> mcu_config_paths_;
41};
42
43} // namespace cuttlefish
Definition: expected.h:86
Definition: mcu_config_path.h:29
Result< Json::Value > JsonForIndex(size_t) const
Definition: mcu_config_path.cc:71
std::vector< std::string > mcu_config_paths_
Definition: mcu_config_path.h:40
static McuConfigPathFlag FromGlobalGflags()
Definition: mcu_config_path.cc:42
McuConfigPathFlag(std::vector< std::string > mcu_config_paths)
Definition: mcu_config_path.cc:87
std::string PathForIndex(size_t argument_index) const
Definition: mcu_config_path.cc:64
Definition: alloc_utils.cpp:23