summaryrefslogtreecommitdiff
path: root/src/lib/content.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/content.h')
-rw-r--r--src/lib/content.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/content.h b/src/lib/content.h
new file mode 100644
index 000000000..c848860aa
--- /dev/null
+++ b/src/lib/content.h
@@ -0,0 +1,17 @@
+#include <boost/filesystem.hpp>
+#include <boost/thread/mutex.hpp>
+
+class Content
+{
+public:
+ boost::filesystem::path file () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _file;
+ }
+
+protected:
+ boost::mutex _mutex;
+
+private:
+ boost::filesystem::path _file;
+};