boost::fdoutbuf Class Reference

#include <fdstream.h>


Public Member Functions

 fdoutbuf (int _fd)

Protected Member Functions

virtual int overflow (int c)
virtual std::streamsize xsputn (const char *s, std::streamsize num)

Protected Attributes

int fd


Constructor & Destructor Documentation

boost::fdoutbuf::fdoutbuf int  _fd  )  [inline]
 

Definition at line 68 of file fdstream.h.

00068                        : fd(_fd) {
00069     }


Member Function Documentation

virtual int boost::fdoutbuf::overflow int  c  )  [inline, protected, virtual]
 

Definition at line 72 of file fdstream.h.

00072                                  {
00073         if (c != EOF) {
00074             char z = c;
00075             if (write (fd, &z, 1) != 1) {
00076                 return EOF;
00077             }
00078         }
00079         return c;
00080     }

virtual std::streamsize boost::fdoutbuf::xsputn const char *  s,
std::streamsize  num
[inline, protected, virtual]
 

Definition at line 83 of file fdstream.h.

00084                                                {
00085         return write(fd,s,num);
00086     }


Field Documentation

int boost::fdoutbuf::fd [protected]
 

Definition at line 65 of file fdstream.h.


The documentation for this class was generated from the following file:
Generated on Fri Oct 15 15:51:59 2004 for Real Time Battle by  doxygen 1.3.9.1