2
#ifndef INCLUDED_TEMPORARY_FILE_DIRECTORY
3
#define INCLUDED_TEMPORARY_FILE_DIRECTORY
8
* Provides services for allocating and reserving
9
* secure, temporary directories.
11
* @author Kai Vehmanen
13
class TEMPORARY_FILE_DIRECTORY {
17
static const int max_temp_files = 512;
19
TEMPORARY_FILE_DIRECTORY(void);
20
TEMPORARY_FILE_DIRECTORY(const std::string& dir);
21
~TEMPORARY_FILE_DIRECTORY(void);
23
void set_directory_prefix(const std::string& dir);
24
void reserve_directory(const std::string& nspace);
25
void release_directory(void);
27
std::string get_directory_prefix(void) const;
28
std::string get_reserved_directory(void) const;
29
std::string create_filename(const std::string& prefix, const std::string& postfix);
30
bool is_valid(void) const;
34
void check_validity(void);
37
std::string dirprefix_rep;