openMSX
Public Member Functions | List of all members
openmsx::StdioConnection Class Referencefinal

#include <CliConnection.hh>

Inheritance diagram for openmsx::StdioConnection:
Inheritance graph
[legend]
Collaboration diagram for openmsx::StdioConnection:
Collaboration graph
[legend]

Public Member Functions

 StdioConnection (CommandController &commandController, EventDistributor &eventDistributor)
 
 ~StdioConnection () override
 
void output (std::string_view message) override
 
- Public Member Functions inherited from openmsx::CliConnection
void setUpdateEnable (CliComm::UpdateType type, bool value)
 
bool getUpdateEnable (CliComm::UpdateType type) const
 
void start ()
 Starts the helper thread. More...
 
- Public Member Functions inherited from openmsx::CliListener
 CliListener (const CliListener &)=delete
 
CliListeneroperator= (const CliListener &)=delete
 
virtual ~CliListener ()=default
 
virtual void log (CliComm::LogLevel level, std::string_view message) noexcept=0
 
virtual void update (CliComm::UpdateType type, std::string_view machine, std::string_view name, std::string_view value) noexcept=0
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::CliConnection
 CliConnection (CommandController &commandController, EventDistributor &eventDistributor)
 
 ~CliConnection () override
 
virtual void output (std::string_view message)=0
 
void end ()
 End this connection by sending the closing tag and then closing the stream. More...
 
virtual void close ()=0
 Close the connection. More...
 
void startOutput ()
 Send opening XML tag, should be called exactly once by a subclass shortly after opening a connection. More...
 
- Protected Member Functions inherited from openmsx::CliListener
 CliListener ()=default
 
- Protected Attributes inherited from openmsx::CliConnection
AdhocCliCommParser parser
 
Poller poller
 

Detailed Description

Definition at line 86 of file CliConnection.hh.

Constructor & Destructor Documentation

◆ StdioConnection()

openmsx::StdioConnection::StdioConnection ( CommandController commandController,
EventDistributor eventDistributor 
)

Definition at line 128 of file CliConnection.cc.

References openmsx::CliConnection::startOutput().

◆ ~StdioConnection()

openmsx::StdioConnection::~StdioConnection ( )
override

Definition at line 135 of file CliConnection.cc.

References openmsx::CliConnection::end().

Member Function Documentation

◆ output()

void openmsx::StdioConnection::output ( std::string_view  message)
overridevirtual

Implements openmsx::CliConnection.

Definition at line 159 of file CliConnection.cc.


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