µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os::posix::tty_impl Class Referenceabstract

#include <tty.h>

+ Inheritance diagram for os::posix::tty_impl:

Public Member Functions

Constructors & Destructor
 tty_impl (void)
 
virtual ~tty_impl () override
 
Public Member Functions
virtual int do_tcgetattr (termios *ptio)=0
 
virtual int do_tcsetattr (int options, const termios *ptio)=0
 
virtual int do_tcflush (int queue_selector)=0
 
virtual int do_tcsendbreak (int duration)=0
 
virtual int do_tcdrain (void)=0
 
virtual int do_isatty (void) final
 
Public Member Functions
virtual off_t do_lseek (off_t offset, int whence) override
 
virtual void do_sync (void) override
 
Public Member Functions
virtual bool do_is_opened (void) override
 
virtual int do_vopen (const char *path, int oflag, std::va_list args)=0
 
virtual int do_vioctl (int request, std::va_list args)=0
 
int open_count (void)
 
Public Member Functions
virtual void do_deallocate (void)
 
virtual bool do_is_connected (void)
 
virtual ssize_t do_read (void *buf, std::size_t nbyte)=0
 
virtual ssize_t do_write (const void *buf, std::size_t nbyte)=0
 
virtual ssize_t do_writev (const iovec *iov, int iovcnt)
 
virtual int do_vfcntl (int cmd, std::va_list args)
 
virtual int do_fstat (struct stat *buf)
 
virtual int do_close (void)=0
 
off_t offset (void)
 
void offset (off_t offset)
 

Friends

class tty
 

Detailed Description

Definition at line 136 of file tty.h.

Constructor & Destructor Documentation

◆ tty_impl()

os::posix::tty_impl::tty_impl ( void  )

Definition at line 86 of file tty.cpp.

◆ ~tty_impl()

os::posix::tty_impl::~tty_impl ( )
overridevirtual

Definition at line 93 of file tty.cpp.

Member Function Documentation

◆ do_close()

virtual int os::posix::io_impl::do_close ( void  )
pure virtualinherited

◆ do_deallocate()

void os::posix::io_impl::do_deallocate ( void  )
virtualinherited

Definition at line 483 of file io.cpp.

◆ do_fstat()

int os::posix::io_impl::do_fstat ( struct stat buf)
virtualinherited

Definition at line 535 of file io.cpp.

◆ do_is_connected()

bool os::posix::io_impl::do_is_connected ( void  )
virtualinherited

Definition at line 497 of file io.cpp.

◆ do_is_opened()

bool os::posix::device_impl::do_is_opened ( void  )
overridevirtualinherited

Implements os::posix::io_impl.

Definition at line 219 of file device.cpp.

◆ do_isatty()

int os::posix::tty_impl::do_isatty ( void  )
finalvirtual

Reimplemented from os::posix::io_impl.

Definition at line 101 of file tty.cpp.

◆ do_lseek()

off_t os::posix::char_device_impl::do_lseek ( off_t  offset,
int  whence 
)
overridevirtualinherited

Implements os::posix::io_impl.

Definition at line 84 of file char-device.cpp.

◆ do_read()

virtual ssize_t os::posix::io_impl::do_read ( void *  buf,
std::size_t  nbyte 
)
pure virtualinherited

◆ do_sync()

void os::posix::char_device_impl::do_sync ( void  )
overridevirtualinherited

Implements os::posix::device_impl.

Definition at line 93 of file char-device.cpp.

◆ do_tcdrain()

virtual int os::posix::tty_impl::do_tcdrain ( void  )
pure virtual

◆ do_tcflush()

virtual int os::posix::tty_impl::do_tcflush ( int  queue_selector)
pure virtual

◆ do_tcgetattr()

virtual int os::posix::tty_impl::do_tcgetattr ( termios ptio)
pure virtual

◆ do_tcsendbreak()

virtual int os::posix::tty_impl::do_tcsendbreak ( int  duration)
pure virtual

◆ do_tcsetattr()

virtual int os::posix::tty_impl::do_tcsetattr ( int  options,
const termios ptio 
)
pure virtual

◆ do_vfcntl()

int os::posix::io_impl::do_vfcntl ( int  cmd,
std::va_list  args 
)
virtualinherited

Definition at line 521 of file io.cpp.

◆ do_vioctl()

virtual int os::posix::device_impl::do_vioctl ( int  request,
std::va_list  args 
)
pure virtualinherited

◆ do_vopen()

virtual int os::posix::device_impl::do_vopen ( const char *  path,
int  oflag,
std::va_list  args 
)
pure virtualinherited

◆ do_write()

virtual ssize_t os::posix::io_impl::do_write ( const void *  buf,
std::size_t  nbyte 
)
pure virtualinherited

◆ do_writev()

ssize_t os::posix::io_impl::do_writev ( const iovec iov,
int  iovcnt 
)
virtualinherited

Definition at line 503 of file io.cpp.

◆ offset() [1/2]

void os::posix::io_impl::offset ( off_t  offset)
inlineinherited

Definition at line 482 of file io.h.

◆ offset() [2/2]

off_t os::posix::io_impl::offset ( void  )
inlineinherited

Definition at line 476 of file io.h.

◆ open_count()

int os::posix::device_impl::open_count ( void  )
inlineinherited

Definition at line 327 of file device.h.

Friends And Related Symbol Documentation

◆ tty

friend class tty
friend

Definition at line 140 of file tty.h.


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