10#ifndef OKSSYSTEM_DESCRIPTOR
11#define OKSSYSTEM_DESCRIPTOR
36 static int flags(
bool read_mode,
bool write_mode);
38 operator int()
const throw();
43 int read(
void* buffer,
size_t number)
const;
44 int write(
const void * buffer,
size_t number)
const;
46 int fd()
const throw();
File descriptor / Socket wrapper.
Descriptor(const File *file, int flags, mode_t perm)
int read(void *buffer, size_t number) const
int fd() const
file descritptor
static int flags(bool read_mode, bool write_mode)
void open(const File *file, int flags, mode_t perm)
internal open method
void closeOnExec()
It flags the file descriptor to be closed after any call to the exec okssystem function.
void close()
close the descriptor
void close_safe()
close the descriptor no exception
int write(const void *buffer, size_t number) const
std::string m_name
internal file descriptor
Wrapper for file operations.