blob: 9ef9044c06a768a9ac4dbd74afd01dc97553df53 [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
17bool set_::operator==(const set_& b) const
18{
19 return this->m_path == b.m_path && this->m_data == b.m_data;
20}
21
22bool cd_::operator==(const cd_& b) const
23{
24 return this->m_path == b.m_path;
25}
26
Václav Kubernátebca2552018-06-08 19:06:02 +020027bool enum_::operator==(const enum_& b) const
28{
29 return this->m_value == b.m_value;
30}
31
Václav Kubernát24df80e2018-06-06 15:18:03 +020032bool create_::operator==(const create_& b) const
33{
34 return this->m_path == b.m_path;
35}
36
37bool delete_::operator==(const delete_& b) const
38{
39 return this->m_path == b.m_path;
40}