Elaboradar  0.1
Membri pubblici | Elenco di tutti i membri
Riferimenti per la classe radarelab::utils::sys::Tempfile

Open a temporary file. Continua...

#include <sys.h>

Diagramma delle classi per radarelab::utils::sys::Tempfile
radarelab::utils::sys::File radarelab::utils::sys::ManagedNamedFileDescriptor radarelab::utils::sys::NamedFileDescriptor radarelab::utils::sys::FileDescriptor

Membri pubblici

void unlink_on_exit (bool val)
 Change the unlink-on-exit behaviour. Continua...
 
void unlink ()
 Unlink the file right now. Continua...
 
- Membri pubblici ereditati da radarelab::utils::sys::File
 File (const std::string &pathname)
 Create an unopened File object for the given pathname. Continua...
 
 File (const std::string &pathname, int flags, mode_t mode=0777)
 Wrapper around open(2) Continua...
 
void open (int flags, mode_t mode=0777)
 Wrapper around open(2) Continua...
 
bool open_ifexists (int flags, mode_t mode=0777)
 Wrap open(2) and return false instead of throwing an exception if open fails with ENOENT. 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...
 
bool read_all_or_retry (void *buf, size_t count)
 Read count bytes into bufr, retrying partial reads, stopping at EOF. 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...
 
int getfl ()
 Get open flags for the file. Continua...
 
void setfl (int flags)
 Set open flags for the file. Continua...
 

Descrizione dettagliata

Open a temporary file.

By default, the temporary file will be deleted when the object is deleted.

Definizione alla linea 541 del file sys.h.


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