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 | ebca255 | 2018-06-08 19:06:02 +0200 | [diff] [blame] | 10 | enum_::enum_() = default; |
| 11 | |
| 12 | enum_::enum_(const std::string& value) |
| 13 | : m_value(value) |
| 14 | { |
| 15 | } |
Václav Kubernát | 24df80e | 2018-06-06 15:18:03 +0200 | [diff] [blame] | 16 | |
Václav Kubernát | ab53899 | 2019-03-06 15:30:50 +0100 | [diff] [blame] | 17 | binary_::binary_() = default; |
| 18 | |
| 19 | binary_::binary_(const std::string& value) |
| 20 | : m_value(value) |
| 21 | { |
| 22 | } |
| 23 | |
Václav Kubernát | 24df80e | 2018-06-06 15:18:03 +0200 | [diff] [blame] | 24 | bool set_::operator==(const set_& b) const |
| 25 | { |
| 26 | return this->m_path == b.m_path && this->m_data == b.m_data; |
| 27 | } |
| 28 | |
| 29 | bool cd_::operator==(const cd_& b) const |
| 30 | { |
| 31 | return this->m_path == b.m_path; |
| 32 | } |
| 33 | |
Václav Kubernát | 11afac7 | 2018-07-18 14:59:53 +0200 | [diff] [blame] | 34 | bool ls_::operator==(const ls_& b) const |
| 35 | { |
Václav Kubernát | e7d4aea | 2018-09-11 18:15:48 +0200 | [diff] [blame] | 36 | 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] | 37 | } |
| 38 | |
Václav Kubernát | ab53899 | 2019-03-06 15:30:50 +0100 | [diff] [blame] | 39 | bool binary_::operator==(const binary_& b) const |
| 40 | { |
| 41 | return this->m_value == b.m_value; |
| 42 | } |
| 43 | |
Václav Kubernát | ebca255 | 2018-06-08 19:06:02 +0200 | [diff] [blame] | 44 | bool enum_::operator==(const enum_& b) const |
| 45 | { |
| 46 | return this->m_value == b.m_value; |
| 47 | } |
| 48 | |
Václav Kubernát | 24df80e | 2018-06-06 15:18:03 +0200 | [diff] [blame] | 49 | bool create_::operator==(const create_& b) const |
| 50 | { |
| 51 | return this->m_path == b.m_path; |
| 52 | } |
| 53 | |
| 54 | bool delete_::operator==(const delete_& b) const |
| 55 | { |
| 56 | return this->m_path == b.m_path; |
| 57 | } |