Add ProxyDatastore
This class will be used to intercept certain commands from the cli, like
entering RPC input. Right now, it works just as a pass-through.
Change-Id: I2d252609c1354005a0ccf4a1f26399dc895a73e8
diff --git a/src/interpreter.hpp b/src/interpreter.hpp
index 543fb2e..000cc21 100644
--- a/src/interpreter.hpp
+++ b/src/interpreter.hpp
@@ -9,12 +9,12 @@
#pragma once
#include <boost/variant/static_visitor.hpp>
-#include "datastore_access.hpp"
+#include "proxy_datastore.hpp"
#include "parser.hpp"
struct Interpreter : boost::static_visitor<void> {
- Interpreter(Parser& parser, DatastoreAccess& datastore);
+ Interpreter(Parser& parser, ProxyDatastore& datastore);
void operator()(const commit_&) const;
void operator()(const set_&) const;
@@ -40,5 +40,5 @@
[[nodiscard]] boost::variant<dataPath_, schemaPath_, module_> toCanonicalPath(const PathType& path) const;
Parser& m_parser;
- DatastoreAccess& m_datastore;
+ ProxyDatastore& m_datastore;
};