]> git.mxchange.org Git - simgear.git/blobdiff - simgear/misc/sg_dir.hxx
Compile under MSVC 9
[simgear.git] / simgear / misc / sg_dir.hxx
index 707053ab27926dfa0e6daefe463ef75fb834ddc0..109a0d4b0d846b1a51732683d2aec1f6882cfbf5 100644 (file)
@@ -42,6 +42,16 @@ namespace simgear
   class Dir
   {
   public:
+    Dir();
+    ~Dir();
+    
+    /**
+     * when this directory object is destroyed, remove the corresponding
+     * diretory (and its contents) from the disk. Often used with temporary
+     * directories to ensure they are cleaned up.
+     */
+    void setRemoveOnDestroy();
+    
     static Dir current();
     
     /**
@@ -91,6 +101,7 @@ namespace simgear
     Dir parent() const;
   private:
     mutable SGPath _path;
+    bool _removeOnDestroy;
   };
 } // of namespace simgear