PUMA Library Reference Manual
Loading...
Searching...
No Matches
Puma::TerminalSink Class Reference

#include <Puma/TerminalSink.h>

+ Inheritance diagram for Puma::TerminalSink:

Description

Terminal sink implementation.

Warning
This class is not used and may disappear without notice.

Public Member Functions

virtual int write (const char *buffer, int n)
 Write n bytes from the given buffer onto the terminal. More...
 
- Public Member Functions inherited from Puma::Sink
virtual ~Sink ()
 Destructor. More...
 
virtual int write (const char *buffer, int n)=0
 Write n bytes from the given buffer into the sink. More...
 
virtual bool full ()
 Check if the output sink is full. More...
 

Member Function Documentation

◆ write()

virtual int Puma::TerminalSink::write ( const char *  buffer,
int  n 
)
virtual

Write n bytes from the given buffer onto the terminal.

Parameters
bufferThe bytes to write.
nThe number of bytes to write.
Returns
The number of bytes written.

Implements Puma::Sink.