blob: 74aefd5af1469ac9c3d0f37cf4697f415a9ba3d1 [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}
Václav Kubernát70d7f7a2020-06-23 14:40:40 +020044
45bool dump_::operator==(const dump_& other) const
46{
47 return this->m_format == other.m_format;
48}
Václav Kubernát3d787b12020-10-29 09:11:26 +010049
50bool prepare_::operator==(const prepare_& other) const
51{
52 return this->m_path == other.m_path;
53}
Václav Kubernátd8408e02020-12-02 05:13:27 +010054
55bool exec_::operator==(const exec_& other) const
56{
57 return this->m_path == other.m_path;
58}
Václav Kubernát162165e2021-02-22 09:46:53 +010059
60bool switch_::operator==(const switch_& other) const
61{
62 return this->m_target == other.m_target;
63}