blob: 28c5eb11bfcfed964c94b4d67fd5cc4d45bf3dff [file] [log] [blame]
Václav Kubernát195eeea2018-05-18 13:52:36 +02001/*
2 * Copyright (C) 2018 CESNET, https://photonics.cesnet.cz/
3 * Copyright (C) 2018 FIT CVUT, https://fit.cvut.cz/
4 *
5 * Written by Václav Kubernát <kubervac@fit.cvut.cz>
6 *
7*/
8
Václav Kubernát48fc3832018-05-28 14:21:22 +02009#include "schema.hpp"
Václav Kubernát195eeea2018-05-18 13:52:36 +020010struct ParserContext {
Václav Kubernát48fc3832018-05-28 14:21:22 +020011 ParserContext(const Schema& schema, const path_ curDir);
12 const Schema& m_schema;
Václav Kubernát814fa412018-05-25 19:47:18 +020013 path_ m_curPath;
Václav Kubernát744f57f2018-06-29 22:46:26 +020014 boost::optional<std::string> m_curModule;
Václav Kubernát195eeea2018-05-18 13:52:36 +020015 std::string m_errorMsg;
16 std::string m_tmpListName;
Václav Kubernát744f57f2018-06-29 22:46:26 +020017 bool m_topLevelModulePresent = false;
Václav Kubernát195eeea2018-05-18 13:52:36 +020018 std::set<std::string> m_tmpListKeys;
19 bool m_errorHandled = false;
20};