Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Tmp Class Reference

a temporary file handler. More...

#include <tmp.h>

List of all members.

Public Methods

 Tmp (bool use_tmp, bool no_erase)
 ~Tmp ()
std::string get_tmp_file ()
bool register_tmp_file (std::string file)
 register an other temporary file. More...


Private Types

typedef std::list< std::string > tmp_file_list
typedef tmp_file_list::iterator tmp_file_list_it

Private Methods

bool can_write (std::string file)
bool read_dir ()
 get all files of the directory. More...

bool is_unique (std::string file)

Private Attributes

tmp_file_list files
tmp_file_list own_files
bool valid
int nfiles
 file counter. More...

long pid
 process ID or something else similar. More...

bool use_tmp
bool no_erase


Detailed Description

a temporary file handler.


Member Typedef Documentation

typedef std::list<std::string> Tmp::tmp_file_list [private]
 

typedef tmp_file_list::iterator Tmp::tmp_file_list_it [private]
 


Constructor & Destructor Documentation

Tmp::Tmp bool    use_tmp,
bool    no_erase
 

Tmp::~Tmp  
 


Member Function Documentation

bool Tmp::can_write std::string    file [private]
 

std::string Tmp::get_tmp_file  
 

bool Tmp::is_unique std::string    file [private]
 

bool Tmp::read_dir   [private]
 

get all files of the directory.

bool Tmp::register_tmp_file std::string    file
 

register an other temporary file.


Member Data Documentation

tmp_file_list Tmp::files [private]
 

int Tmp::nfiles [private]
 

file counter.

bool Tmp::no_erase [private]
 

tmp_file_list Tmp::own_files [private]
 

long Tmp::pid [private]
 

process ID or something else similar.

bool Tmp::use_tmp [private]
 

bool Tmp::valid [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Nov 20 02:19:54 2001 for Leo<HTML> by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001