Refactor some yang related stuff
I'm going to put similar stuff in there.
Change-Id: I655d74f01fac1a4286aa81eef3f3522521830933
diff --git a/src/yang_operations.hpp b/src/yang_operations.hpp
new file mode 100644
index 0000000..c8dc1a0
--- /dev/null
+++ b/src/yang_operations.hpp
@@ -0,0 +1,32 @@
+/*
+ * 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;
+};
+}
+
+enum class Datastore {
+ Running,
+ Startup
+};