Drizzled Public API Documentation

CSFile Class Reference
Inheritance diagram for CSFile:
CSSysFile CSRefObject CSObject MSRepoFile

List of all members.

Public Member Functions

CSOutputStreamgetOutputStream ()
CSOutputStreamgetOutputStream (off64_t offset)
CSInputStreamgetInputStream ()
CSInputStreamgetInputStream (off64_t offset)
virtual void open (int mode)
virtual void lock ()
virtual void unlock ()
virtual void close ()
void md5Digest (Md5Digest *digest)
virtual off64_t getEOF ()
virtual void setEOF (off64_t offset)
virtual size_t read (void *data, off64_t offset, size_t size, size_t min_size)
virtual void write (const void *data, off64_t offset, size_t size)
virtual void flush ()
virtual void sync ()
virtual void touch ()
virtual const char * getEOL ()
virtual const char * getPathString ()
bool exists ()
void streamOut (CSOutputStream *dst_stream, off64_t src_offset, off64_t size, char *buffer, size_t buffer_size)
void streamIn (CSInputStream *src_stream, off64_t dst_offset, off64_t size, char *buffer, size_t buffer_size)
bool fs_isOpen ()
void sf_open (const char *path, bool readonly, bool create)
void sf_close ()
size_t sf_pread (void *data, size_t size, off64_t offset)
void sf_pwrite (const void *data, size_t size, off64_t offset)
off64_t sf_getEOF ()
void sf_setEOF (off64_t offset)
void sf_sync ()
void sf_lock (bool shared)
void sf_unlock ()
virtual void retain ()
virtual void release ()
uint32_t getRefCount ()
virtual void finalize ()
virtual CSObjectgetKey ()
virtual int compareKey (CSObject *)
virtual uint32_t hashKey ()
virtual CSObjectgetHashLink ()
virtual void setHashLink (CSObject *)
virtual CSObjectgetNextLink ()
virtual CSObjectgetPrevLink ()
virtual void setNextLink (CSObject *)
virtual void setPrevLink (CSObject *)

Static Public Member Functions

static bool isDirNotFound (CSException *e)
static bool isDirExists (CSException *e)
static bool transfer (CSFile *dst_file, off64_t dst_offset, CSFile *src_file, off64_t src_offset, off64_t size, char *buffer, size_t buffer_size)
static CSFilenewFile (CSPath *path)
static CSFilenewFile (const char *path)
static CSFilenewFile (const char *dir_str, const char *path_str)
static bool isFileNotFound (CSException *e)

Public Attributes

CSPathmyFilePath

Static Public Attributes

static const int DEFAULT = 0
static const int READONLY = 1
static const int CREATE = 2
static const int TRUNCATE = 4

Private Member Functions

virtual void openFile (int mode)
bool try_CreateAndOpen (CSThread *self, int mode, bool retry)

Private Attributes

int iMode
int iLocked

Friends

class CSReadBufferedFile

Detailed Description

Definition at line 43 of file CSFile.h.


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