µ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::char_device_impl Class Referenceabstract

#include <char-device.h>

+ Inheritance diagram for os::posix::char_device_impl:

Public Member Functions

Constructors & Destructor
 char_device_impl (void)
 
virtual ~char_device_impl () override
 
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_isatty (void)
 
virtual int do_fstat (struct stat *buf)
 
virtual int do_close (void)=0
 
off_t offset (void)
 
void offset (off_t offset)
 

Friends

class char_device
 

Detailed Description

Definition at line 115 of file char-device.h.

Constructor & Destructor Documentation

◆ char_device_impl()

os::posix::char_device_impl::char_device_impl ( void  )

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

◆ ~char_device_impl()

os::posix::char_device_impl::~char_device_impl ( )
overridevirtual

Definition at line 69 of file char-device.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::io_impl::do_isatty ( void  )
virtualinherited

Reimplemented in os::posix::tty_impl.

Definition at line 528 of file io.cpp.

◆ do_lseek()

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

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  )
overridevirtual

Implements os::posix::device_impl.

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

◆ 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

◆ char_device

friend class char_device
friend

Definition at line 119 of file char-device.h.


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