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 | |
| 15 | bool cd_::operator==(const cd_& b) const |
| 16 | { |
| 17 | return this->m_path == b.m_path; |
| 18 | } |
| 19 | |
Václav Kubernát | 11afac7 | 2018-07-18 14:59:53 +0200 | [diff] [blame] | 20 | bool ls_::operator==(const ls_& b) const |
| 21 | { |
Václav Kubernát | e7d4aea | 2018-09-11 18:15:48 +0200 | [diff] [blame] | 22 | 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] | 23 | } |
| 24 | |
Václav Kubernát | 24df80e | 2018-06-06 15:18:03 +0200 | [diff] [blame] | 25 | bool create_::operator==(const create_& b) const |
| 26 | { |
| 27 | return this->m_path == b.m_path; |
| 28 | } |
| 29 | |
| 30 | bool delete_::operator==(const delete_& b) const |
| 31 | { |
| 32 | return this->m_path == b.m_path; |
| 33 | } |