rpa::filgen_fd_to_FILE_base Class Reference

#include <streambuf_tmpnam.h>

Inheritance diagram for rpa::filgen_fd_to_FILE_base:

rpa::filgen_fd_to_FILE< FdGenerator > List of all members.

Public Member Functions

void open (int filDes)
 For security reasons, only this process can access this file.
FILE * operator() (void) const
void close (int filDes)

Private Attributes

FILE * _file

Detailed Description

This template converts a functor generating int file descriptors, into a functor for generating FILE pointers. It is useful when a streambuf can only be initialised with a file descriptor, but the calling program can only provide a temporary int file descriptor.


Member Function Documentation

void rpa::filgen_fd_to_FILE_base::close ( int  filDes  ) 

The file itself is not removed by this class. It is only closed. It is up to the base class to remove it.

void rpa::filgen_fd_to_FILE_base::open ( int  filDes  ) 

For security reasons, only this process can access this file.

The file must exist because it is already open. The file offset stay the same, and we assume it was already at the right place, i.e. the beginning.

FILE* rpa::filgen_fd_to_FILE_base::operator() ( void   )  const [inline]

Returns the stored FILE ptr, because temp files generators must have a 'operator() const' which always return the same value.


Member Data Documentation

FILE* rpa::filgen_fd_to_FILE_base::_file [private]

Reimplemented in rpa::filgen_fd_to_FILE< FdGenerator >.


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 10:20:38 2007 for rpa by  doxygen 1.4.7