async_fstream Class Reference

Converts fstream to use an async_filebuf. More...

#include <ccafile.h>

List of all members.

Public Member Functions

 async_fstream ()
 async_fstream (const char *name, INT32 mode, INT32 prot)
 async_fstream (filedesc fd)
 async_fstream (filedesc fd, char *sbuf, INT32 len)

Protected Member Functions

streambuf * set_streambuf (streambuf *pbuf)


Detailed Description

Converts fstream to use an async_filebuf.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/9/96

Definition at line 234 of file ccafile.h.


Constructor & Destructor Documentation

async_fstream::async_fstream  ) 
 

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/9/96

Definition at line 714 of file ccafile.cpp.

00715 {
00716     set_streambuf(new asynchstreambuf);
00717 }

async_fstream::async_fstream const char *  name,
INT32  mode,
INT32  prot
 

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/9/96

Definition at line 727 of file ccafile.cpp.

00728 {
00729     set_streambuf(new asynchstreambuf);
00730     open(name,mode,prot);
00731 }

async_fstream::async_fstream filedesc  fd  ) 
 

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/9/96

Definition at line 741 of file ccafile.cpp.

00742 {
00743     set_streambuf(new asynchstreambuf);
00744     attach(fd);
00745 }

async_fstream::async_fstream filedesc  fd,
char *  sbuf,
INT32  len
 

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/9/96

Definition at line 755 of file ccafile.cpp.

00756 {
00757     set_streambuf(new asynchstreambuf);
00758     setbuf(sbuf, len);
00759     attach(fd);
00760 }


Member Function Documentation

streambuf * async_fstream::set_streambuf streambuf *  pbuf  )  [protected]
 

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/9/96

Definition at line 770 of file ccafile.cpp.

00771 {
00772     if (bp) delete bp;
00773     return bp = pbuf;
00774 }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:50:02 2007 for Camelot by  doxygen 1.4.4