Android-cuttlefish cvd tool
display_proto.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 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 <optional>
19#include <vector>
20
23
24namespace cuttlefish {
25
27 public:
29
30 // An empty value implies the flag is not used, while a present empty list
31 // implies the user has explicitly requested an empty display list.
32 const std::optional<
33 std::vector<std::vector<CuttlefishConfig::DisplayConfig>>>&
34 Config() const;
35
36 private:
37 explicit DisplaysProtoFlag(
38 std::optional<std::vector<std::vector<CuttlefishConfig::DisplayConfig>>>);
39 std::optional<std::vector<std::vector<CuttlefishConfig::DisplayConfig>>>
41};
42
43} // namespace cuttlefish
Definition: expected.h:86
Definition: display_proto.h:26
static Result< DisplaysProtoFlag > FromGlobalGflags()
Definition: display_proto.cc:118
DisplaysProtoFlag(std::optional< std::vector< std::vector< CuttlefishConfig::DisplayConfig > > >)
Definition: display_proto.cc:125
std::optional< std::vector< std::vector< CuttlefishConfig::DisplayConfig > > > config_
Definition: display_proto.h:40
const std::optional< std::vector< std::vector< CuttlefishConfig::DisplayConfig > > > & Config() const
Definition: display_proto.cc:131
Definition: alloc_utils.cpp:23