rutz::pipe_fds Class Reference

An exception-safe wrapper around a pair of file descriptors from pipe(). More...

#include <rutz/pipe.h>

List of all members.

Public Member Functions

 pipe_fds ()
 Create a pipe pair of file descriptors.
 ~pipe_fds () throw ()
 Destructor closes both file descriptors.
int reader () const throw ()
int writer () const throw ()
void close_reader () throw ()
void close_writer () throw ()

Detailed Description

An exception-safe wrapper around a pair of file descriptors from pipe().

Definition at line 81 of file pipe.h.


Constructor & Destructor Documentation

rutz::pipe_fds::pipe_fds (  ) 

Create a pipe pair of file descriptors.

Throws an exception if the pipe() call fails.

Definition at line 113 of file pipe.cc.

References SRC_POS.

rutz::pipe_fds::~pipe_fds (  )  throw ()

Destructor closes both file descriptors.

Definition at line 119 of file pipe.cc.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:44:44 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3