blob: 89e2f748afcbae6bd3105a579feedb15c05353e5 [file] [log] [blame]
Václav Kubernát24df80e2018-06-06 15:18:03 +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#include "ast_commands.hpp"
9
Václav Kubernátebca2552018-06-08 19:06:02 +020010enum_::enum_() = default;
11
12enum_::enum_(const std::string& value)
13 : m_value(value)
14{
15}
Václav Kubernát24df80e2018-06-06 15:18:03 +020016
17bool set_::operator==(const set_& b) const
18{
19 return this->m_path == b.m_path && this->m_data == b.m_data;
20}
21
22bool cd_::operator==(const cd_& b) const
23{
24 return this->m_path == b.m_path;
25}
26
Václav Kubernát11afac72018-07-18 14:59:53 +020027bool ls_::operator==(const ls_& b) const
28{
29 return this->m_path == b.m_path;
30}
31
Václav Kubernátebca2552018-06-08 19:06:02 +020032bool enum_::operator==(const enum_& b) const
33{
34 return this->m_value == b.m_value;
35}
36
Václav Kubernát24df80e2018-06-06 15:18:03 +020037bool create_::operator==(const create_& b) const
38{
39 return this->m_path == b.m_path;
40}
41
42bool delete_::operator==(const delete_& b) const
43{
44 return this->m_path == b.m_path;
45}