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 | |
| 17 | bool set_::operator==(const set_& b) const |
| 18 | { |
| 19 | return this->m_path == b.m_path && this->m_data == b.m_data; |
| 20 | } |
| 21 | |
| 22 | bool cd_::operator==(const cd_& b) const |
| 23 | { |
| 24 | return this->m_path == b.m_path; |
| 25 | } |
| 26 | |
Václav Kubernát | ebca255 | 2018-06-08 19:06:02 +0200 | [diff] [blame] | 27 | bool enum_::operator==(const enum_& b) const |
| 28 | { |
| 29 | return this->m_value == b.m_value; |
| 30 | } |
| 31 | |
Václav Kubernát | 24df80e | 2018-06-06 15:18:03 +0200 | [diff] [blame] | 32 | bool create_::operator==(const create_& b) const |
| 33 | { |
| 34 | return this->m_path == b.m_path; |
| 35 | } |
| 36 | |
| 37 | bool delete_::operator==(const delete_& b) const |
| 38 | { |
| 39 | return this->m_path == b.m_path; |
| 40 | } |