blob: 0b1310cf3b9cc3a337a0230e7335fb4e7be71cb8 [file] [log] [blame]
Václav Kubernátbf65dd72020-05-28 02:32:31 +02001/*
2 * Copyright (C) 2020 CESNET, https://photonics.cesnet.cz/
3 *
4 * Written by Václav Kubernát <kubernat@cesnet.cz>
5 *
6*/
7#pragma once
8#include <variant>
9#include "list_instance.hpp"
10
11namespace yang::move {
12enum class Absolute {
13 Begin,
14 End
15};
16struct Relative {
17 bool operator==(const yang::move::Relative& other) const
18 {
19 return this->m_position == other.m_position && this->m_path == other.m_path;
20 }
21 enum class Position {
22 Before,
23 After
24 } m_position;
25 ListInstance m_path;
26};
27}