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();
/**
Dir parent() const;
private:
mutable SGPath _path;
+ bool _removeOnDestroy;
};
} // of namespace simgear