Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

RenderFarmFSClient Class Reference

#include <renderfarmfsclient.h>

List of all members.

Public Member Functions

 RenderFarmFSClient (RenderFarmClientThread *client)
 ~RenderFarmFSClient ()
void initialize ()
FILE * fopen (const char *path, const char *mode)
int fclose (FILE *file)
int remove (__const char *__filename)
int rename (__const char *__old, __const char *__new)
int fgetc (FILE *__stream)
int fputc (int __c, FILE *__stream)
size_t fread (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream)
size_t fwrite (__const void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __s)
int fseek (FILE *__stream, int64_t __off, int __whence)
int64_t ftell (FILE *__stream)
int stat64 (__const char *__restrict __file, struct stat64 *__restrict __buf)
int stat (__const char *__restrict __file, struct stat *__restrict __buf)
char * fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
int fileno (FILE *file)
int fscanf (FILE *__restrict stream, const char *__restrict format, va_list ap)
void lock ()
void unlock ()
int is_open (FILE *ptr)
void set_open (FILE *ptr, int64_t pointer)
void unset_open (FILE *ptr, int64_t pointer)
int64_t get_64 (FILE *ptr)

Public Attributes

Mutex * mutex_lock
ArrayList< FILE * > files
ArrayList< int64_t > pointers
RenderFarmClientThreadclient


Detailed Description

Definition at line 43 of file renderfarmfsclient.h.


Constructor & Destructor Documentation

RenderFarmFSClient::RenderFarmFSClient RenderFarmClientThread client  ) 
 

Definition at line 539 of file renderfarmfsclient.C.

References mutex_lock.

RenderFarmFSClient::~RenderFarmFSClient  ) 
 

Definition at line 545 of file renderfarmfsclient.C.

References mutex_lock, and renderfarm_fs_global.


Member Function Documentation

int RenderFarmFSClient::fclose FILE *  file  ) 
 

Definition at line 642 of file renderfarmfsclient.C.

References client, DEBUG, get_64(), RenderFarmClientThread::lock(), RENDERFARM_FCLOSE, RenderFarmClientThread::send_request_header(), STORE_INT64, RenderFarmClientThread::unlock(), unset_open(), and RenderFarmClientThread::write_socket().

Referenced by fclose().

int RenderFarmFSClient::fgetc FILE *  __stream  ) 
 

Definition at line 750 of file renderfarmfsclient.C.

References client, DEBUG, get_64(), RenderFarmClientThread::lock(), RenderFarmClientThread::read_socket(), RENDERFARM_FGETC, RenderFarmClientThread::send_request_header(), STORE_INT64, RenderFarmClientThread::unlock(), and RenderFarmClientThread::write_socket().

Referenced by fgetc().

char * RenderFarmFSClient::fgets char *__restrict  __s,
int  __n,
FILE *__restrict  __stream
 

Definition at line 819 of file renderfarmfsclient.C.

References client, DEBUG, get_64(), RenderFarmClientThread::lock(), READ_INT32, RenderFarmClientThread::read_socket(), RENDERFARM_FGETS, RenderFarmClientThread::send_request_header(), STORE_INT32, STORE_INT64, RenderFarmClientThread::unlock(), and RenderFarmClientThread::write_socket().

Referenced by fgets(), and fscanf().

int RenderFarmFSClient::fileno FILE *  file  ) 
 

Definition at line 667 of file renderfarmfsclient.C.

References client, DEBUG, get_64(), RenderFarmClientThread::lock(), READ_INT32, RenderFarmClientThread::read_socket(), RENDERFARM_FILENO, RenderFarmClientThread::send_request_header(), STORE_INT64, RenderFarmClientThread::unlock(), and RenderFarmClientThread::write_socket().

Referenced by fileno().

FILE * RenderFarmFSClient::fopen const char *  path,
const char *  mode
 

Definition at line 606 of file renderfarmfsclient.C.

References client, DEBUG, RenderFarmClientThread::lock(), READ_INT64, RenderFarmClientThread::read_socket(), RENDERFARM_FOPEN, RenderFarmClientThread::send_request_header(), set_open(), RenderFarmClientThread::unlock(), and RenderFarmClientThread::write_socket().

Referenced by fopen(), and fopen64().

int RenderFarmFSClient::fputc int  __c,
FILE *  __stream
 

Definition at line 784 of file renderfarmfsclient.C.

References client, DEBUG, get_64(), RenderFarmClientThread::lock(), RENDERFARM_FPUTC, RenderFarmClientThread::send_request_header(), STORE_INT64, RenderFarmClientThread::unlock(), and RenderFarmClientThread::write_socket().

Referenced by fputc().

size_t RenderFarmFSClient::fread void *__restrict  __ptr,
size_t  __size,
size_t  __n,
FILE *__restrict  __stream
 

Definition at line 860 of file renderfarmfsclient.C.

References client, DEBUG, get_64(), RenderFarmClientThread::lock(), READ_INT32, RenderFarmClientThread::read_socket(), RENDERFARM_FREAD, RenderFarmClientThread::send_request_header(), STORE_INT32, STORE_INT64, RenderFarmClientThread::unlock(), and RenderFarmClientThread::write_socket().

Referenced by fread().

int RenderFarmFSClient::fscanf FILE *__restrict  stream,
const char *__restrict  format,
va_list  ap
 

Definition at line 812 of file renderfarmfsclient.C.

References fgets().

Referenced by fscanf().

int RenderFarmFSClient::fseek FILE *  __stream,
int64_t  __off,
int  __whence
 

Definition at line 947 of file renderfarmfsclient.C.

References client, DEBUG, get_64(), RenderFarmClientThread::lock(), READ_INT32, RenderFarmClientThread::read_socket(), RENDERFARM_FSEEK, RenderFarmClientThread::send_request_header(), STORE_INT32, STORE_INT64, RenderFarmClientThread::unlock(), and RenderFarmClientThread::write_socket().

Referenced by fseek(), and fseeko64().

int64_t RenderFarmFSClient::ftell FILE *  __stream  ) 
 

Definition at line 983 of file renderfarmfsclient.C.

References client, DEBUG, get_64(), RenderFarmClientThread::lock(), READ_INT64, RenderFarmClientThread::read_socket(), RENDERFARM_FTELL, RenderFarmClientThread::send_request_header(), STORE_INT64, RenderFarmClientThread::unlock(), and RenderFarmClientThread::write_socket().

Referenced by ftell(), and ftello64().

size_t RenderFarmFSClient::fwrite __const void *__restrict  __ptr,
size_t  __size,
size_t  __n,
FILE *__restrict  __s
 

Definition at line 901 of file renderfarmfsclient.C.

References client, DEBUG, get_64(), RenderFarmClientThread::lock(), READ_INT32, RenderFarmClientThread::read_socket(), RENDERFARM_FWRITE, RenderFarmClientThread::send_request_header(), STORE_INT32, STORE_INT64, RenderFarmClientThread::unlock(), and RenderFarmClientThread::write_socket().

Referenced by fwrite().

int64_t RenderFarmFSClient::get_64 FILE *  ptr  ) 
 

Definition at line 588 of file renderfarmfsclient.C.

References files, and pointers.

Referenced by fclose(), fgetc(), fgets(), fileno(), fputc(), fread(), fseek(), ftell(), and fwrite().

void RenderFarmFSClient::initialize  ) 
 

Definition at line 552 of file renderfarmfsclient.C.

References renderfarm_fs_global.

int RenderFarmFSClient::is_open FILE *  ptr  ) 
 

Definition at line 567 of file renderfarmfsclient.C.

References files.

Referenced by fclose(), fgetc(), fgets(), fileno(), fputc(), fread(), fscanf(), fseek(), fseeko64(), ftell(), ftello64(), and fwrite().

void RenderFarmFSClient::lock  ) 
 

Definition at line 557 of file renderfarmfsclient.C.

References mutex_lock.

Referenced by __xstat(), __xstat64(), fclose(), fgetc(), fgets(), fileno(), fopen(), fopen64(), fputc(), fread(), fscanf(), fseek(), fseeko64(), ftell(), ftello64(), fwrite(), remove(), and rename().

int RenderFarmFSClient::remove __const char *  __filename  ) 
 

Definition at line 699 of file renderfarmfsclient.C.

References client, DEBUG, RenderFarmClientThread::lock(), RENDERFARM_REMOVE, RenderFarmClientThread::send_request_header(), RenderFarmClientThread::unlock(), and RenderFarmClientThread::write_socket().

Referenced by remove().

int RenderFarmFSClient::rename __const char *  __old,
__const char *  __new
 

Definition at line 724 of file renderfarmfsclient.C.

References client, DEBUG, RenderFarmClientThread::lock(), RENDERFARM_RENAME, RenderFarmClientThread::send_request_header(), RenderFarmClientThread::unlock(), and RenderFarmClientThread::write_socket().

Referenced by rename().

void RenderFarmFSClient::set_open FILE *  ptr,
int64_t  pointer
 

Definition at line 574 of file renderfarmfsclient.C.

References files, and pointers.

Referenced by fopen().

int RenderFarmFSClient::stat __const char *__restrict  __file,
struct stat *__restrict  __buf
 

Definition at line 1013 of file renderfarmfsclient.C.

References client, DEBUG, RenderFarmClientThread::lock(), RenderFarmClientThread::read_socket(), RENDERFARM_STAT, RenderFarmClientThread::send_request_header(), RenderFarmClientThread::unlock(), and RenderFarmClientThread::write_socket().

Referenced by __xstat().

int RenderFarmFSClient::stat64 __const char *__restrict  __file,
struct stat64 *__restrict  __buf
 

Definition at line 1045 of file renderfarmfsclient.C.

References client, DEBUG, RenderFarmClientThread::lock(), RenderFarmClientThread::read_socket(), RENDERFARM_STAT64, RenderFarmClientThread::send_request_header(), RenderFarmClientThread::unlock(), and RenderFarmClientThread::write_socket().

Referenced by __xstat64().

void RenderFarmFSClient::unlock  ) 
 

Definition at line 562 of file renderfarmfsclient.C.

References mutex_lock.

Referenced by __xstat(), __xstat64(), fclose(), fgetc(), fgets(), fileno(), fopen(), fopen64(), fputc(), fread(), fscanf(), fseek(), fseeko64(), ftell(), ftello64(), fwrite(), remove(), and rename().

void RenderFarmFSClient::unset_open FILE *  ptr,
int64_t  pointer
 

Definition at line 581 of file renderfarmfsclient.C.

References files, and pointers.

Referenced by fclose().


Member Data Documentation

RenderFarmClientThread* RenderFarmFSClient::client
 

Definition at line 90 of file renderfarmfsclient.h.

Referenced by fclose(), fgetc(), fgets(), fileno(), fopen(), fputc(), fread(), fseek(), ftell(), fwrite(), remove(), rename(), stat(), and stat64().

ArrayList<FILE*> RenderFarmFSClient::files
 

Definition at line 86 of file renderfarmfsclient.h.

Referenced by get_64(), is_open(), set_open(), and unset_open().

Mutex* RenderFarmFSClient::mutex_lock
 

Definition at line 85 of file renderfarmfsclient.h.

Referenced by lock(), RenderFarmFSClient(), unlock(), and ~RenderFarmFSClient().

ArrayList<int64_t> RenderFarmFSClient::pointers
 

Definition at line 89 of file renderfarmfsclient.h.

Referenced by get_64(), set_open(), and unset_open().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:25 2006 for Cinelerra-svn by  doxygen 1.4.4