Václav Kubernát | bf65dd7 | 2020-05-28 02:32:31 +0200 | [diff] [blame] | 1 | /* |
| 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 | |
| 11 | namespace yang::move { |
| 12 | enum class Absolute { |
| 13 | Begin, |
| 14 | End |
| 15 | }; |
| 16 | struct 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 | } |
Václav Kubernát | 6a7dd4d | 2020-06-23 22:44:13 +0200 | [diff] [blame] | 28 | |
| 29 | enum class Datastore { |
| 30 | Running, |
| 31 | Startup |
| 32 | }; |
Václav Kubernát | 70d7f7a | 2020-06-23 14:40:40 +0200 | [diff] [blame] | 33 | |
| 34 | enum class DataFormat { |
| 35 | Xml, |
| 36 | Json |
| 37 | }; |