summaryrefslogtreecommitdiff
path: root/src/data.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-24 14:14:02 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-24 14:14:02 +0100
commit094117316524f12fc82adbdf721778eed04e66f6 (patch)
treeaaa2abd88a2aba64d53022554265f000c93be966 /src/data.h
parent2ae92dcc97765deb2845dd07a338858aeb375cb3 (diff)
Give Data a loading constructor.
Diffstat (limited to 'src/data.h')
-rw-r--r--src/data.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/data.h b/src/data.h
index d169c5c5..3cece1da 100644
--- a/src/data.h
+++ b/src/data.h
@@ -18,6 +18,8 @@
*/
#include <boost/shared_array.hpp>
+#include <boost/filesystem.hpp>
+#include <stdint.h>
namespace dcp {
@@ -31,6 +33,8 @@ public:
, size (size_)
{}
+ Data (boost::filesystem::path file);
+
boost::shared_array<uint8_t> data;
boost::uintmax_t size;
};