Tie datastore to the interpreter
Change-Id: I943b071981aa0e16dcc32d1c87cebb15846f7d7e
diff --git a/src/interpreter.hpp b/src/interpreter.hpp
index 8acf8bd..87f12f1 100644
--- a/src/interpreter.hpp
+++ b/src/interpreter.hpp
@@ -10,9 +10,10 @@
#include <boost/variant/static_visitor.hpp>
#include "parser.hpp"
+#include "datastore_access.hpp"
struct Interpreter : boost::static_visitor<void> {
- Interpreter(Parser& parser, Schema&);
+ Interpreter(Parser& parser, DatastoreAccess& datastore);
void operator()(const set_&) const;
void operator()(const cd_&) const;
@@ -21,5 +22,9 @@
void operator()(const ls_&) const;
private:
+ template <typename T>
+ std::string absolutePathFromCommand(const T& command) const;
+
Parser& m_parser;
+ DatastoreAccess& m_datastore;
};