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:
32
34 const std::vector<std::string>& cvd_process_args,
35 const std::unordered_map<std::string, std::string>& env,
36 const std::vector<std::string>& selector_args);
37
39 const std::vector<std::string>& all_args,
40 const std::unordered_map<std::string, std::string>& env);
41
43 const std::vector<std::string>& args,
44 const std::unordered_map<std::string, std::string>& env);
45
46 private:
49};
50
51} // namespace cuttlefish
Definition: expected.h:86
Definition: cvd.h:29
InstanceManager & instance_manager_
Definition: cvd.h:47
Result< void > HandleAcloud(const std::vector< std::string > &args, const std::unordered_map< std::string, std::string > &env)
Definition: cvd.cpp:103
Result< void > HandleCvdCommand(const std::vector< std::string > &all_args, const std::unordered_map< std::string, std::string > &env)
Definition: cvd.cpp:89
Cvd(InstanceManager &, InstanceLockFileManager &)
Definition: cvd.cpp:60
Result< void > HandleCommand(const std::vector< std::string > &cvd_process_args, const std::unordered_map< std::string, std::string > &env, const std::vector< std::string > &selector_args)
Definition: cvd.cpp:65
InstanceLockFileManager & lock_file_manager_
Definition: cvd.h:48
Definition: instance_lock.h:45
Definition: instance_manager.h:37
Definition: alloc_utils.cpp:23