Android-cuttlefish cvd tool
cvd.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 <string>
20#include <unordered_map>
21#include <vector>
22
26
27namespace cuttlefish {
28
29class Cvd {
30 public:
31 explicit Cvd(InstanceManager&);
32
34 const std::vector<std::string>& cvd_process_args,
35 const std::unordered_map<std::string, std::string>& env,
36 selector::SelectorOptions selector_args);
37
39 const std::vector<std::string>& all_args,
40 const std::unordered_map<std::string, std::string>& env);
41
42 private:
44};
45
46} // namespace cuttlefish
Definition: cvd.h:29
InstanceManager & instance_manager_
Definition: cvd.h:43
Cvd(InstanceManager &)
Definition: cvd.cpp:36
Result< void > HandleCvdCommand(const std::vector< std::string > &all_args, const std::unordered_map< std::string, std::string > &env)
Definition: cvd.cpp:80
Result< void > HandleCommand(const std::vector< std::string > &cvd_process_args, const std::unordered_map< std::string, std::string > &env, selector::SelectorOptions selector_args)
Definition: cvd.cpp:46
Definition: instance_manager.h:51
Definition: alloc_driver.h:21
tl::expected< T, StackTraceError< E > > Result
Definition: result_type.h:30
Definition: selector_common_parser.h:28