#include <wefts_coffee_unix.h>
Inheritance diagram for Wefts::OSFileFuncUnix:
This class implements Cooperative File Functions under unix enviroments.
Unix is usually very cooperative towards threading, and this means that calls inside this class are usually very simple inline calls to unix system calls.
You can access this class with the typedef OSFileFunc.
Public Member Functions | |
OSFileFuncUnix (void *descriptor=0) | |
virtual CffStatus | open (std::string filespec, OpenMode openMode=OM_RO, LockMode lockMode=LM_SHARED) |
Unix layer COFFEE function to open a file It opens a single file using the specified mode. | |
virtual CffStatus | create (std::string filespec, CreateMode cMode=CM_ARCHIVE, LockMode lockMode=LM_EXCLUSIVE) |
virtual void | getDescriptor (void *data) const |
To get the descriptor, pass a pointer to an integer where the descriptor will be placed. | |
virtual void | setDescriptor (void *data) |
To set the descriptor, pass a pointer to the integer. | |
virtual file_size_t | read (void *buffer, const file_size_t len) |
virtual file_size_t | write (void *buffer, const file_size_t len) |
virtual file_size_t | seek (const file_size_t position, const SeekWhence swFrom=SW_FROM_BEGIN) |
virtual CffStatus | close () |
virtual void | setStdIn () |
virtual void | setStdOut () |
virtual void | setStdErr () |
Protected Member Functions | |
int | pselect (int n, fd_set *r, fd_set *w, fd_set *e, struct timespec *ti, void *mask) |
bool | waitForWrite () |
bool | waitForRead () |
Protected Attributes | |
int | m_fd |
|
|
|
Implements Wefts::OSFileFuncBase. |
|
Implements Wefts::OSFileFuncBase. |
|
To get the descriptor, pass a pointer to an integer where the descriptor will be placed.
Implements Wefts::OSFileFuncBase. |
|
Unix layer COFFEE function to open a file It opens a single file using the specified mode.
Implements Wefts::OSFileFuncBase. |
|
|
|
Implements Wefts::OSFileFuncBase. |
|
Implements Wefts::OSFileFuncBase. |
|
To set the descriptor, pass a pointer to the integer.
Implements Wefts::OSFileFuncBase. |
|
Implements Wefts::OSFileFuncBase. |
|
Implements Wefts::OSFileFuncBase. |
|
Implements Wefts::OSFileFuncBase. |
|
|
|
|
|
Implements Wefts::OSFileFuncBase. |
|
|