Integrate DataQuery
Change-Id: I439374afe485baf08a4d5a1a02fd70d908bec9e1
diff --git a/src/parser.hpp b/src/parser.hpp
index c2cd8d6..7a94919 100644
--- a/src/parser.hpp
+++ b/src/parser.hpp
@@ -9,6 +9,7 @@
#pragma once
#include "ast_commands.hpp"
#include "ast_path.hpp"
+#include "data_query.hpp"
#include "schema.hpp"
@@ -32,7 +33,7 @@
class Parser {
public:
- Parser(const std::shared_ptr<const Schema> schema);
+ Parser(const std::shared_ptr<const Schema> schema, const std::shared_ptr<const DataQuery> dataQuery = nullptr);
command_ parseCommand(const std::string& line, std::ostream& errorStream);
void changeNode(const dataPath_& name);
std::string currentNode() const;
@@ -41,5 +42,6 @@
private:
const std::shared_ptr<const Schema> m_schema;
+ const std::shared_ptr<const DataQuery> m_dataquery;
dataPath_ m_curDir;
};