rpa::filgen_fd_to_FILE< FdGenerator > Class Template Reference

#include <streambuf_tmpnam.h>

Inheritance diagram for rpa::filgen_fd_to_FILE< FdGenerator >:

rpa::filgen_fd_to_FILE_base List of all members.

Public Member Functions

 filgen_fd_to_FILE ()
 For security reasons, only this process can access this file.
 ~filgen_fd_to_FILE ()

Private Attributes

FILE * _file
FdGenerator _filDes

Detailed Description

template<class FdGenerator>
class rpa::filgen_fd_to_FILE< FdGenerator >

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.


Constructor & Destructor Documentation

template<class FdGenerator>
rpa::filgen_fd_to_FILE< FdGenerator >::filgen_fd_to_FILE (  )  [inline]

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

template<class FdGenerator>
rpa::filgen_fd_to_FILE< FdGenerator >::~filgen_fd_to_FILE (  )  [inline]

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


Member Data Documentation

template<class FdGenerator>
FdGenerator rpa::filgen_fd_to_FILE< FdGenerator >::_filDes [private]

template<class FdGenerator>
FILE* rpa::filgen_fd_to_FILE< FdGenerator >::_file [private]

Reimplemented from rpa::filgen_fd_to_FILE_base.


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