TemporaryDirectory.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2012 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 /* Util/genutil/TemporaryDirectory.h */
10 
11 #ifndef __TemporaryDirectory_h
12 #define __TemporaryDirectory_h
13 
14 #include <string>
15 
18 {
19 
20  public:
21 
23  TemporaryDirectory (const std::string& basename);
24 
26  const std::string& get_directory () const;
27 
28  private:
29 
31  mutable std::string path;
32 
34  std::string base;
35 
36  void build () const;
37 };
38 
39 #endif
40 
const std::string & get_directory() const
Return the temporary directory name.
Definition: TemporaryDirectory.C:35
Locks the mutex on construction and unlocks on deletion.
Definition: ThreadContext.h:56
A convenient exception handling class.
Definition: Error.h:54
ThreadContext class.
Definition: ThreadContext.h:15
Creates a temporary directory for the current user.
Definition: TemporaryDirectory.h:17
TemporaryDirectory(const std::string &basename)
Create a temporary directory.
Definition: TemporaryDirectory.C:30

Generated using doxygen 1.8.17