BasicOutputStream Class Reference

#include <event_loop.H>

Inheritance diagram for BasicOutputStream:

Inheritance graph
[legend]
Collaboration diagram for BasicOutputStream:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BasicOutputStream (int fd)
 ~BasicOutputStream ()
const int getFD () const
void setWriteHandler (WriteHandler *handler)
void setErrorHandler (ErrorHandler *handler)
void setWriting (bool enabled)
int write (const char *buf, int nbytes)
void close (void)

Private Member Functions

 BasicOutputStream (const BasicOutputStream &)
BasicOutputStreamoperator= (const BasicOutputStream &)
void handleWrite ()
void handleError ()

Private Attributes

int _fd
WriteHandler_write_handler
ErrorHandler_error_handler


Constructor & Destructor Documentation

BasicOutputStream::BasicOutputStream ( int  fd  )  [explicit]

Here is the call graph for this function:

BasicOutputStream::~BasicOutputStream (  ) 

BasicOutputStream::BasicOutputStream ( const BasicOutputStream  )  [private]


Member Function Documentation

const int BasicOutputStream::getFD ( void   )  const

void BasicOutputStream::setWriteHandler ( WriteHandler handler  )  [virtual]

Implements OutputStream.

void BasicOutputStream::setErrorHandler ( ErrorHandler handler  )  [virtual]

Implements OutputStream.

void BasicOutputStream::setWriting ( bool  enabled  )  [virtual]

Set whether or not the stream should be raising handleWrite() calls.

Implements OutputStream.

Here is the call graph for this function:

int BasicOutputStream::write ( const char *  buf,
int  nbytes 
) [virtual]

This should behave like the syscall write() on the descriptor in the underlying stream.

Implements OutputStream.

void BasicOutputStream::close ( void   )  [virtual]

Close the underlying stream.

Implements OutputStream.

Here is the call graph for this function:

BasicOutputStream& BasicOutputStream::operator= ( const BasicOutputStream  )  [private]

void BasicOutputStream::handleWrite ( void   )  [private, virtual]

Implements WriteHandler.

Here is the call graph for this function:

void BasicOutputStream::handleError ( void   )  [private, virtual]

Implements ErrorHandler.

Here is the call graph for this function:


Member Data Documentation

int BasicOutputStream::_fd [private]


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

Generated on Thu Jun 11 14:09:02 2009 for Gush by  doxygen 1.5.5