Václav Kubernát | 24df80e | 2018-06-06 15:18:03 +0200 | [diff] [blame] | 1 | /* |
| 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át | 24df80e | 2018-06-06 15:18:03 +0200 | [diff] [blame] | 10 | bool 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át | 5b8a8f3 | 2020-05-20 00:57:22 +0200 | [diff] [blame] | 15 | bool get_::operator==(const get_& b) const |
| 16 | { |
| 17 | return this->m_path == b.m_path; |
| 18 | } |
| 19 | |
Václav Kubernát | 24df80e | 2018-06-06 15:18:03 +0200 | [diff] [blame] | 20 | bool cd_::operator==(const cd_& b) const |
| 21 | { |
| 22 | return this->m_path == b.m_path; |
| 23 | } |
| 24 | |
Václav Kubernát | 11afac7 | 2018-07-18 14:59:53 +0200 | [diff] [blame] | 25 | bool ls_::operator==(const ls_& b) const |
| 26 | { |
Václav Kubernát | e7d4aea | 2018-09-11 18:15:48 +0200 | [diff] [blame] | 27 | return this->m_path == b.m_path && this->m_options == b.m_options; |
Václav Kubernát | 11afac7 | 2018-07-18 14:59:53 +0200 | [diff] [blame] | 28 | } |
| 29 | |
Václav Kubernát | 24df80e | 2018-06-06 15:18:03 +0200 | [diff] [blame] | 30 | bool create_::operator==(const create_& b) const |
| 31 | { |
| 32 | return this->m_path == b.m_path; |
| 33 | } |
| 34 | |
| 35 | bool delete_::operator==(const delete_& b) const |
| 36 | { |
| 37 | return this->m_path == b.m_path; |
| 38 | } |
Václav Kubernát | bf65dd7 | 2020-05-28 02:32:31 +0200 | [diff] [blame] | 39 | |
| 40 | bool move_::operator==(const move_& other) const |
| 41 | { |
| 42 | return this->m_source == other.m_source && this->m_destination == other.m_destination; |
| 43 | } |
Václav Kubernát | 70d7f7a | 2020-06-23 14:40:40 +0200 | [diff] [blame] | 44 | |
| 45 | bool dump_::operator==(const dump_& other) const |
| 46 | { |
| 47 | return this->m_format == other.m_format; |
| 48 | } |
Václav Kubernát | 3d787b1 | 2020-10-29 09:11:26 +0100 | [diff] [blame^] | 49 | |
| 50 | bool prepare_::operator==(const prepare_& other) const |
| 51 | { |
| 52 | return this->m_path == other.m_path; |
| 53 | } |