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.


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

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:56:44 2008 by Doxygen version 1.5.5.