diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-05-01 15:07:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-05-01 15:07:04 +0100 |
| commit | 2d46203be73930a968806fa1af88369de51734ff (patch) | |
| tree | 8c896f39ca2ef48c44dd3f069c043c89ce668bfd /src/lib/util.h | |
| parent | c98c87afe29d9ef74bdced8a9c96d7752f3fe80f (diff) | |
Comments.
Diffstat (limited to 'src/lib/util.h')
| -rw-r--r-- | src/lib/util.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/util.h b/src/lib/util.h index 579b1c231..a13d7ff73 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -141,16 +141,20 @@ private: char* _old; }; +/** @class ScopedTemporary + * @brief A temporary file which is deleted when the ScopedTemporary object goes out of scope. + */ class ScopedTemporary { public: ScopedTemporary (); ~ScopedTemporary (); + /** @return temporary filename */ boost::filesystem::path file () const { return _file; } - + char const * c_str () const; FILE* open (char const *); void close (); |
