Android-cuttlefish cvd tool
Public Member Functions | List of all members
cuttlefish::MonitorSource Class Referenceabstract

#include <monitor_source.h>

Inheritance diagram for cuttlefish::MonitorSource:
Inheritance graph
[legend]

Public Member Functions

virtual ~MonitorSource ()
 
virtual MonitorOutput Report (size_t rows, size_t columns)=0
 
virtual SharedFD ReadyFd ()=0
 

Constructor & Destructor Documentation

◆ ~MonitorSource()

cuttlefish::MonitorSource::~MonitorSource ( )
virtualdefault

Member Function Documentation

◆ ReadyFd()

virtual SharedFD cuttlefish::MonitorSource::ReadyFd ( )
pure virtual

When this file descriptor is ready for reading (as defined by poll), it is ready to report new data from Report.

If the file descriptor is invalid, the source is always considered ready.

Implemented in cuttlefish::FileMonitorSource.

◆ Report()

virtual MonitorOutput cuttlefish::MonitorSource::Report ( size_t  rows,
size_t  columns 
)
pure virtual

Pulls new information from the data source if there is any and returns the text that should be shown in the monitor window.

rows and columns are hints for the output. May output more or less.

Implemented in cuttlefish::FileMonitorSource.


The documentation for this class was generated from the following files: