Android-cuttlefish cvd tool
load_configs.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#pragma once
17
18#include <string>
19
28
29namespace cuttlefish {
30
31/*
32cvd load component is responsible of loading, translation and creation of
33cuttlefish instances based on input json configuration file
34*/
36 public:
37 LoadConfigsCommand(InstanceManager& instance_manager);
39
40 Result<void> Handle(const CommandRequest& request) override;
41 std::vector<std::string> CmdList() const override;
42 std::string SummaryHelp() const override;
43 std::vector<HelpParagraph> Description() const override;
45 bool RequiresHostConfiguration() const override { return true; }
46
47 static std::vector<HelpParagraph> CommonCommandDescription();
48
49 private:
51 LocalInstanceGroup& group, CvdFlags cvd_flags);
52
55};
56
57} // namespace cuttlefish
Definition: command_request.h:33
Definition: command_handler.h:28
Definition: instance_manager.h:50
Definition: load_configs.h:35
std::string SummaryHelp() const override
Definition: load_configs.cpp:241
LoadConfigsCommand(InstanceManager &instance_manager)
Definition: load_configs.cpp:114
static std::vector< HelpParagraph > CommonCommandDescription()
Definition: load_configs.cpp:260
Result< void > LoadGroup(const CommandRequest &request, LocalInstanceGroup &group, CvdFlags cvd_flags)
Definition: load_configs.cpp:198
LoadFlags flags_
Definition: load_configs.h:54
bool RequiresHostConfiguration() const override
Definition: load_configs.h:45
Result< std::vector< Flag > > Flags(const CommandRequest &) override
Definition: load_configs.cpp:319
InstanceManager & instance_manager_
Definition: load_configs.h:53
std::vector< HelpParagraph > Description() const override
Definition: load_configs.cpp:243
std::vector< std::string > CmdList() const override
Definition: load_configs.cpp:237
Result< void > Handle(const CommandRequest &request) override
Definition: load_configs.cpp:117
Definition: local_instance_group.h:32
Definition: alloc_driver.h:20
tl::expected< T, StackTraceError > Result
Definition: result_type.h:30
Definition: load_configs_parser.h:33
Definition: load_configs_parser.h:40