blob: 1b89a6c874041d682156bf5f8d45308b27ba6b60 [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át24df80e2018-06-06 15:18:03 +020010bool set_::operator==(const set_& b) const
11{
12 return this->m_path == b.m_path && this->m_data == b.m_data;
13}
14
Václav Kubernát5b8a8f32020-05-20 00:57:22 +020015bool get_::operator==(const get_& b) const
16{
17 return this->m_path == b.m_path;
18}
19
Václav Kubernát24df80e2018-06-06 15:18:03 +020020bool cd_::operator==(const cd_& b) const
21{
22 return this->m_path == b.m_path;
23}
24
Václav Kubernát11afac72018-07-18 14:59:53 +020025bool ls_::operator==(const ls_& b) const
26{
Václav Kubernáte7d4aea2018-09-11 18:15:48 +020027 return this->m_path == b.m_path && this->m_options == b.m_options;
Václav Kubernát11afac72018-07-18 14:59:53 +020028}
29
Václav Kubernát24df80e2018-06-06 15:18:03 +020030bool create_::operator==(const create_& b) const
31{
32 return this->m_path == b.m_path;
33}
34
35bool delete_::operator==(const delete_& b) const
36{
37 return this->m_path == b.m_path;
38}
Václav Kubernátbf65dd72020-05-28 02:32:31 +020039
40bool move_::operator==(const move_& other) const
41{
42 return this->m_source == other.m_source && this->m_destination == other.m_destination;
43}