summaryrefslogtreecommitdiff
path: root/src/lib/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-01 15:07:04 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-01 15:07:04 +0100
commit2d46203be73930a968806fa1af88369de51734ff (patch)
tree8c896f39ca2ef48c44dd3f069c043c89ce668bfd /src/lib/util.h
parentc98c87afe29d9ef74bdced8a9c96d7752f3fe80f (diff)
Comments.
Diffstat (limited to 'src/lib/util.h')
-rw-r--r--src/lib/util.h6
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 ();