Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

terimber_aiofile Class Reference

#include <aiofilefactory.h>

Inheritance diagram for terimber_aiofile:

terimber_log_helper terimber_log aiofile

List of all members.

Public Member Functions

virtual ~terimber_aiofile ()
 destructor
virtual size_t open (const char *file_name, bool read_write, terimber_aiofile_callback *callback)=0
 open file
virtual void close (size_t handle)=0
 close file
virtual int write (size_t handle, size_t offset, const void *buf, size_t len, size_t timeout, void *userdata)=0
 sends buffer to specified file asynchronously
virtual int read (size_t handle, size_t offset, void *buf, size_t len, size_t timeout, void *userdata)=0
 receives buffer of bytes from specified file asynchronously
virtual void doxray ()=0
 makes the snapshot of internal state


Detailed Description

Definition at line 81 of file aiofilefactory.h.


Constructor & Destructor Documentation

virtual terimber_aiofile::~terimber_aiofile (  )  [inline, virtual]

destructor

Definition at line 85 of file aiofilefactory.h.


Member Function Documentation

virtual size_t terimber_aiofile::open ( const char *  file_name,
bool  read_write,
terimber_aiofile_callback callback 
) [pure virtual]

open file

Parameters:
file_name  file name
read_write  open for read or write only
callback  user callback class

Implemented in aiofile.

virtual void terimber_aiofile::close ( size_t  handle  )  [pure virtual]

close file

Parameters:
handle  valid file ident

Implemented in aiofile.

virtual int terimber_aiofile::write ( size_t  handle,
size_t  offset,
const void *  buf,
size_t  len,
size_t  timeout,
void *  userdata 
) [pure virtual]

sends buffer to specified file asynchronously

Parameters:
handle  valid file ident
offset  file offset
buf  buffer
len  length of buffer
timeout  timeout in milliseconds
userdata  user defined data

Implemented in aiofile.

virtual int terimber_aiofile::read ( size_t  handle,
size_t  offset,
void *  buf,
size_t  len,
size_t  timeout,
void *  userdata 
) [pure virtual]

receives buffer of bytes from specified file asynchronously

Parameters:
handle  valid file ident
offset  file offset
buf  buffer
len  length of buffer
timeout  timeout in milliseconds
userdata  user defined data

Implemented in aiofile.

virtual void terimber_aiofile::doxray (  )  [pure virtual]

makes the snapshot of internal state

Implemented in aiofile.


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


© Copyright Terimber 2003-.