rpa::filgen_name_to_FILE< NameGenerator > Class Template Reference

#include <streambuf_tmpnam.h>

Inheritance diagram for rpa::filgen_name_to_FILE< NameGenerator >:

rpa::filgen_name_to_FILE_base List of all members.

Public Member Functions

 filgen_name_to_FILE ()
 ~filgen_name_to_FILE ()

Private Attributes

NameGenerator _filNam

Detailed Description

template<class NameGenerator>
class rpa::filgen_name_to_FILE< NameGenerator >

This template converts a functor for generating file names, into a functor for generating FILE ptr. It may be necessary when a streambuf can only be initialised with a FILE ptr, but the calling program can only create a temporary file name.


Constructor & Destructor Documentation

template<class NameGenerator>
rpa::filgen_name_to_FILE< NameGenerator >::filgen_name_to_FILE (  )  [inline]

There is a security hole because we cannot access this file exclusively. Even if we could, this step cannot be atomic so the file could be by anything, if it is in /tmp.

template<class NameGenerator>
rpa::filgen_name_to_FILE< NameGenerator >::~filgen_name_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 NameGenerator>
NameGenerator rpa::filgen_name_to_FILE< NameGenerator >::_filNam [private]


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