rutz::stdiostream Class Reference

Collaboration diagram for rutz::stdiostream:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 stdiostream (FILE *f, int om, bool throw_exception=false)
 Create with a reference to a FILE object.
 stdiostream (int fd, int om, bool throw_exception=false)
 Create with a reference to a file descriptor.
bool is_open () const
 Check whether we have an open file descriptor.
void close ()
 Flushes the buffer and forgets the file descriptor, but DOESN'T CLOSE IT.

Detailed Description

Definition at line 102 of file stdiobuf.h.


Constructor & Destructor Documentation

rutz::stdiostream::stdiostream ( FILE *  f,
int  om,
bool  throw_exception = false 
) [inline]

Create with a reference to a FILE object.

The stdiobuf will NOT close the FILE on destruction, that is left up to the caller (since the caller must also have been the one to open the FILE object).

Definition at line 112 of file stdiobuf.h.

rutz::stdiostream::stdiostream ( int  fd,
int  om,
bool  throw_exception = false 
) [inline]

Create with a reference to a file descriptor.

The stdiobuf will NOT close the descriptor on destruction, that is left up to the caller (since the caller must also have been the one to open the file descriptor).

Definition at line 123 of file stdiobuf.h.


Member Function Documentation

void rutz::stdiostream::close ( void   )  [inline]

Flushes the buffer and forgets the file descriptor, but DOESN'T CLOSE IT.

Definition at line 134 of file stdiobuf.h.

References rutz::stdiobuf::close().

Referenced by rutz::exec_pipe::close(), rutz::bidir_pipe::close_in(), and rutz::bidir_pipe::close_out().

bool rutz::stdiostream::is_open (  )  const [inline]

Check whether we have an open file descriptor.

Definition at line 131 of file stdiobuf.h.

References rutz::stdiobuf::is_open().


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