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
27
28namespace cuttlefish {
29
30class Cvd {
31 public:
33
35 const std::vector<std::string>& cvd_process_args,
36 const std::unordered_map<std::string, std::string>& env,
37 selector::SelectorOptions selector_args);
38
40 const std::vector<std::string>& all_args,
41 const std::unordered_map<std::string, std::string>& env);
42
43 private:
46};
47
48} // namespace cuttlefish
Definition: cvd.h:30
InstanceManager & instance_manager_
Definition: cvd.h:44
Result< void > HandleCvdCommand(const std::vector< std::string > &all_args, const std::unordered_map< std::string, std::string > &env)
Definition: cvd.cpp:83
Cvd(InstanceManager &, InstanceLockFileManager &)
Definition: cvd.cpp:37
InstanceLockFileManager & lock_file_manager_
Definition: cvd.h:45
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:49
Definition: instance_lock.h:40
Definition: instance_manager.h:50
Definition: alloc_driver.h:20
tl::expected< T, StackTraceError > Result
Definition: result_type.h:30
Definition: selector_common_parser.h:28