blob: fe2fa843465c3457973e96dde21a3a8aac6ea23a [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 "ast_commands.hpp"
enum_::enum_() = default;
enum_::enum_(const std::string& value)
: m_value(value)
{
}
bool set_::operator==(const set_& b) const
{
return this->m_path == b.m_path && this->m_data == b.m_data;
}
bool cd_::operator==(const cd_& b) const
{
return this->m_path == b.m_path;
}
bool ls_::operator==(const ls_& b) const
{
return this->m_path == b.m_path && this->m_options == b.m_options;
}
bool enum_::operator==(const enum_& b) const
{
return this->m_value == b.m_value;
}
bool create_::operator==(const create_& b) const
{
return this->m_path == b.m_path;
}
bool delete_::operator==(const delete_& b) const
{
return this->m_path == b.m_path;
}