Elaboradar  0.1
 Tutto Classi Namespace File Funzioni Variabili Tipi enumerati (enum) Gruppi
Composti | Membri pubblici | Elenco di tutti i membri
Riferimenti per la struct radarelab::utils::sys::Path

Wrap a path on the file system opened with O_PATH. Continua...

#include <sys.h>

Diagramma delle classi per radarelab::utils::sys::Path
radarelab::utils::sys::ManagedNamedFileDescriptor radarelab::utils::sys::NamedFileDescriptor radarelab::utils::sys::FileDescriptor

Composti

struct  iterator
 Iterator for directory entries. Continua...
 

Membri pubblici

 Path (const char *pathname, int flags=0)
 Open the given pathname with flags | O_PATH. Continua...
 
 Path (const std::string &pathname, int flags=0)
 Open the given pathname with flags | O_PATH. Continua...
 
 Path (Path &parent, const char *pathname, int flags=0)
 Open the given pathname calling parent.openat, with flags | O_PATH. Continua...
 
iterator begin ()
 Begin iterator on all directory entries. Continua...
 
iterator end ()
 End iterator on all directory entries. Continua...
 
bool fstatat_ifexists (const char *pathname, struct stat &st)
 fstatat, but in case of ENOENT returns false instead of throwing Continua...
 
void lstatat (const char *pathname, struct stat &st)
 fstatat with the AT_SYMLINK_NOFOLLOW flag set Continua...
 
bool lstatat_ifexists (const char *pathname, struct stat &st)
 lstatat, but in case of ENOENT returns false instead of throwing Continua...
 
void rmdirat (const char *pathname)
 unlinkat with the AT_REMOVEDIR flag set Continua...
 
void rmtree ()
 Delete the directory pointed to by this Path, with all its contents. Continua...
 
- Membri pubblici ereditati da radarelab::utils::sys::ManagedNamedFileDescriptor
 ~ManagedNamedFileDescriptor ()
 The destructor closes the file descriptor, but does not check errors on ::close(). Continua...
 
- Membri pubblici ereditati da radarelab::utils::sys::NamedFileDescriptor
virtual void throw_error (const char *desc)
 Throw an exception based on errno and the given message. Continua...
 
virtual void throw_runtime_error (const char *desc)
 Throw a runtime_error unrelated from errno. Continua...
 
const std::string & name () const
 Return the file pathname. Continua...
 
- Membri pubblici ereditati da radarelab::utils::sys::FileDescriptor
bool is_open () const
 Check if the file descriptor is open (that is, if it is not -1) Continua...
 
void close ()
 Close the file descriptor, setting its value to -1. Continua...
 
void read_all_or_throw (void *buf, size_t count)
 Read all the data into buf, throwing runtime_error in case of a partial read. Continua...
 
void write_all_or_retry (const void *buf, size_t count)
 Write all the data in buf, retrying partial writes. Continua...
 
void write_all_or_throw (const void *buf, size_t count)
 Write all the data in buf, throwing runtime_error in case of a partial write. Continua...
 
bool ofd_setlk (struct::flock &)
 Open file description locks F_OFD_SETLK operation. Continua...
 
bool ofd_setlkw (struct::flock &, bool retry_on_signal=true)
 Open file description locks F_OFD_SETLKW operation. Continua...
 
bool ofd_getlk (struct::flock &)
 Open file description locks F_OFD_GETLK operation. Continua...
 

Descrizione dettagliata

Wrap a path on the file system opened with O_PATH.

Definizione alla linea 318 del file sys.h.


La documentazione per questa struct รจ stata generata a partire dal seguente file: