blob: fe2fa843465c3457973e96dde21a3a8aac6ea23a [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{
Václav Kubernáte7d4aea2018-09-11 18:15:48 +020029 return this->m_path == b.m_path && this->m_options == b.m_options;
Václav Kubernát11afac72018-07-18 14:59:53 +020030}
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}