w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Retro::RfileFd Class Reference

FIXME_docs. More...

#include <RfileFd.hpp>

Inheritance diagram for Retro::RfileFd:
[legend]
Collaboration diagram for Retro::RfileFd:
[legend]

Public Member Functions

 RfileFd ()
 FIXME_docs.
 
 RfileFd (const char *cnam)
 FIXME_docs.
 
 RfileFd (const RfileFd &)=delete
 
RfileFdoperator= (const RfileFd &)=delete
 
bool Open (const char *fname, int flags, RerrMsg &emsg)
 FIXME_docs.
 
bool Open (const char *fname, int flags, mode_t mode, RerrMsg &emsg)
 FIXME_docs.
 
bool Stat (struct stat *sbuf, RerrMsg &emsg)
 FIXME_docs.
 
off_t Seek (off_t offset, int whence, RerrMsg &emsg)
 FIXME_docs.
 
bool Truncate (off_t length, RerrMsg &emsg)
 FIXME_docs.
 
ssize_t Read (void *buf, size_t count, RerrMsg &emsg)
 FIXME_docs.
 
bool WriteAll (const void *buf, size_t count, RerrMsg &emsg)
 FIXME_docs.
 
- Public Member Functions inherited from Retro::Rfd
 Rfd ()
 FIXME_docs.
 
 Rfd (Rfd &&rhs)
 FIXME_docs.
 
 Rfd (const char *cnam)
 FIXME_docs.
 
virtual ~Rfd ()
 FIXME_docs.
 
 Rfd (const Rfd &)=delete
 
Rfdoperator= (const Rfd &)=delete
 
bool SetFd (int fd)
 FIXME_docs.
 
int Fd () const
 FIXME_docs.
 
bool IsOpen () const
 FIXME_docs.
 
bool IsOpenNonStd () const
 FIXME_docs.
 
void Close ()
 FIXME_docs.
 
bool Close (RerrMsg &emsg)
 FIXME_docs.
 
void CloseOrCerr ()
 FIXME_docs.
 
 operator bool () const
 FIXME_docs.
 

Additional Inherited Members

- Protected Attributes inherited from Retro::Rfd
int fFd
 
std::string fCnam
 

Detailed Description

FIXME_docs.

Definition at line 30 of file RfileFd.hpp.

Constructor & Destructor Documentation

◆ RfileFd() [1/3]

Retro::RfileFd::RfileFd ( )

FIXME_docs.

Definition at line 31 of file RfileFd.cpp.

◆ RfileFd() [2/3]

Retro::RfileFd::RfileFd ( const char *  cnam)
explicit

FIXME_docs.

Definition at line 38 of file RfileFd.cpp.

◆ RfileFd() [3/3]

Retro::RfileFd::RfileFd ( const RfileFd )
delete

Member Function Documentation

◆ operator=()

RfileFd & Retro::RfileFd::operator= ( const RfileFd )
delete

◆ Open() [1/2]

bool Retro::RfileFd::Open ( const char *  fname,
int  flags,
RerrMsg emsg 
)

◆ Open() [2/2]

bool Retro::RfileFd::Open ( const char *  fname,
int  flags,
mode_t  mode,
RerrMsg emsg 
)

◆ Stat()

bool Retro::RfileFd::Stat ( struct stat *  sbuf,
RerrMsg emsg 
)

◆ Seek()

off_t Retro::RfileFd::Seek ( off_t  offset,
int  whence,
RerrMsg emsg 
)

◆ Truncate()

bool Retro::RfileFd::Truncate ( off_t  length,
RerrMsg emsg 
)

FIXME_docs.

Definition at line 95 of file RfileFd.cpp.

References Retro::Rfd::fCnam, Retro::Rfd::fFd, and Retro::RerrMsg::InitErrno().

Referenced by Retro::Rw11VirtTapeTap::Write().

◆ Read()

ssize_t Retro::RfileFd::Read ( void *  buf,
size_t  count,
RerrMsg emsg 
)

◆ WriteAll()

bool Retro::RfileFd::WriteAll ( const void *  buf,
size_t  count,
RerrMsg emsg 
)

FIXME_docs.

Definition at line 119 of file RfileFd.cpp.

References Retro::Rfd::fFd, and Retro::RerrMsg::InitErrno().

Referenced by Retro::Rw11VirtDiskFile::Write(), and Retro::Rw11VirtTapeTap::Write().


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