Add move command for moving (leaf)list instances
Change-Id: I0bff25209f74601a450c12a810200b3c124d65f2
diff --git a/src/yang_move.hpp b/src/yang_move.hpp
new file mode 100644
index 0000000..0b1310c
--- /dev/null
+++ b/src/yang_move.hpp
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2020 CESNET, https://photonics.cesnet.cz/
+ *
+ * Written by Václav Kubernát <kubernat@cesnet.cz>
+ *
+*/
+#pragma once
+#include <variant>
+#include "list_instance.hpp"
+
+namespace yang::move {
+enum class Absolute {
+ Begin,
+ End
+};
+struct Relative {
+ bool operator==(const yang::move::Relative& other) const
+ {
+ return this->m_position == other.m_position && this->m_path == other.m_path;
+ }
+ enum class Position {
+ Before,
+ After
+ } m_position;
+ ListInstance m_path;
+};
+}