blob: 55b6ccdcf7958d05bf1c0a2db729739b84dc7dc2 [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átebca2552018-06-08 19:06:02 +020010enum_::enum_() = default;
11
12enum_::enum_(const std::string& value)
13 : m_value(value)
14{
15}
Václav Kubernát24df80e2018-06-06 15:18:03 +020016
Václav Kubernátab538992019-03-06 15:30:50 +010017binary_::binary_() = default;
18
19binary_::binary_(const std::string& value)
20 : m_value(value)
21{
22}
23
Václav Kubernát24df80e2018-06-06 15:18:03 +020024bool set_::operator==(const set_& b) const
25{
26 return this->m_path == b.m_path && this->m_data == b.m_data;
27}
28
29bool cd_::operator==(const cd_& b) const
30{
31 return this->m_path == b.m_path;
32}
33
Václav Kubernát11afac72018-07-18 14:59:53 +020034bool ls_::operator==(const ls_& b) const
35{
Václav Kubernáte7d4aea2018-09-11 18:15:48 +020036 return this->m_path == b.m_path && this->m_options == b.m_options;
Václav Kubernát11afac72018-07-18 14:59:53 +020037}
38
Václav Kubernátab538992019-03-06 15:30:50 +010039bool binary_::operator==(const binary_& b) const
40{
41 return this->m_value == b.m_value;
42}
43
Václav Kubernátebca2552018-06-08 19:06:02 +020044bool enum_::operator==(const enum_& b) const
45{
46 return this->m_value == b.m_value;
47}
48
Václav Kubernát24df80e2018-06-06 15:18:03 +020049bool create_::operator==(const create_& b) const
50{
51 return this->m_path == b.m_path;
52}
53
54bool delete_::operator==(const delete_& b) const
55{
56 return this->m_path == b.m_path;
57}