Android-cuttlefish cvd tool
monitor_source.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2026 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 <stddef.h>
20
21#include <string>
22#include <vector>
23
25
26namespace cuttlefish {
27
30 MonitorOutput(std::string title, std::vector<std::string> lines);
31
32 std::string title;
33 std::vector<std::string> lines;
34};
35
37 public:
38 virtual ~MonitorSource();
45 virtual MonitorOutput Report(size_t rows, size_t columns) = 0;
46
53 virtual SharedFD ReadyFd() = 0;
54};
55
56} // namespace cuttlefish
Definition: monitor_source.h:36
virtual SharedFD ReadyFd()=0
virtual MonitorOutput Report(size_t rows, size_t columns)=0
Definition: shared_fd.h:124
Definition: alloc_driver.h:20
Definition: monitor_source.h:28
std::string title
Definition: monitor_source.h:32
std::vector< std::string > lines
Definition: monitor_source.h:33