blob: 934aac98f9ec262d5486b2da8daa92c80778764e [file] [log] [blame]
/*
* Copyright (C) 2018 CESNET, https://photonics.cesnet.cz/
* Copyright (C) 2018 FIT CVUT, https://fit.cvut.cz/
*
* Written by Václav Kubernát <kubervac@fit.cvut.cz>
*
*/
#include <iostream>
#include "interpreter.hpp"
void Interpreter::operator()(const set_& set) const
{
std::cout << "Setting " << pathToDataString(set.m_path) << " to " << set.m_data << std::endl;
}
void Interpreter::operator()(const cd_& cd) const
{
m_parser.changeNode(cd.m_path);
}
void Interpreter::operator()(const create_& create) const
{
std::cout << "Presence container " << boost::get<container_>(create.m_path.m_nodes.back()).m_name << " created." << std::endl;
}
void Interpreter::operator()(const delete_& delet) const
{
std::cout << "Presence container " << boost::get<container_>(delet.m_path.m_nodes.back()).m_name << " deleted." << std::endl;
}
Interpreter::Interpreter(Parser& parser, Schema&)
: m_parser(parser)
{
}