blob: a4a5cc0cd8e702c88877252aa3ce86c6dee9fc48 [file] [log] [blame]
Václav Kubernát96344a12018-05-28 16:33:39 +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
9#pragma once
10
11#include <boost/variant/static_visitor.hpp>
12#include "parser.hpp"
13
14struct Interpreter : boost::static_visitor<void> {
Václav Kubernátb61336d2018-05-28 17:35:03 +020015 Interpreter(Parser& parser, Schema&);
Václav Kubernát96344a12018-05-28 16:33:39 +020016
17 void operator()(const cd_&) const;
Václav Kubernátb61336d2018-05-28 17:35:03 +020018 void operator()(const create_&) const;
19 void operator()(const delete_&) const;
20
Václav Kubernát96344a12018-05-28 16:33:39 +020021private:
22 Parser& m_parser;
23};