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

#include <file.h>

+ Inheritance diagram for os::posix::file_impl:

Public Member Functions

Constructors & Destructor
 file_impl (class file_system &fs)
 
virtual ~file_impl () override
 
Public Member Functions
virtual int do_ftruncate (off_t length)=0
 
virtual int do_fsync (void)=0
 
class file_systemfile_system (void)
 
Public Member Functions
virtual void do_deallocate (void)
 
virtual bool do_is_opened (void)=0
 
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 struct 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 off_t do_lseek (off_t offset, int whence)=0
 
virtual int do_close (void)=0
 
off_t offset (void)
 
void offset (off_t offset)
 

Detailed Description

Definition at line 173 of file file.h.

Constructor & Destructor Documentation

◆ file_impl()

os::posix::file_impl::file_impl ( class file_system fs)

Definition at line 132 of file file.cpp.

◆ ~file_impl()

os::posix::file_impl::~file_impl ( )
overridevirtual

Definition at line 140 of file file.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 488 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_fsync()

int os::posix::file_impl::do_fsync ( void  )
pure virtual

Definition at line 162 of file file.cpp.

◆ do_ftruncate()

int os::posix::file_impl::do_ftruncate ( off_t  length)
pure virtual

Definition at line 153 of file file.cpp.

◆ do_is_connected()

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

Definition at line 494 of file io.cpp.

◆ do_is_opened()

virtual bool os::posix::io_impl::do_is_opened ( void  )
pure virtualinherited

Implemented in os::posix::device_impl.

◆ 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()

virtual off_t os::posix::io_impl::do_lseek ( off_t  offset,
int  whence 
)
pure virtualinherited

◆ do_read()

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

◆ 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_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 struct iovec iov,
int  iovcnt 
)
virtualinherited

Definition at line 500 of file io.cpp.

◆ file_system()

class file_system & os::posix::file_impl::file_system ( void  )
inline

Definition at line 473 of file file.h.

◆ offset() [1/2]

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

Definition at line 467 of file io.h.

◆ offset() [2/2]

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

Definition at line 461 of file io.h.


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