Refactor some yang related stuff
I'm going to put similar stuff in there.
Change-Id: I655d74f01fac1a4286aa81eef3f3522521830933
diff --git a/src/ast_commands.hpp b/src/ast_commands.hpp
index 4235af5..c4f9f48 100644
--- a/src/ast_commands.hpp
+++ b/src/ast_commands.hpp
@@ -11,7 +11,7 @@
#include <boost/spirit/home/x3/support/ast/position_tagged.hpp>
#include "ast_path.hpp"
#include "ast_values.hpp"
-#include "yang_move.hpp"
+#include "yang_operations.hpp"
namespace x3 = boost::spirit::x3;
diff --git a/src/ast_values.hpp b/src/ast_values.hpp
index c1d8f63..f790148 100644
--- a/src/ast_values.hpp
+++ b/src/ast_values.hpp
@@ -61,11 +61,6 @@
SpecialValue m_value;
};
-enum class Datastore {
- Running,
- Startup
-};
-
std::string specialValueToString(const special_& value);
using leaf_data_ = boost::variant<enum_,
diff --git a/src/datastore_access.hpp b/src/datastore_access.hpp
index addd9f8..b159ab3 100644
--- a/src/datastore_access.hpp
+++ b/src/datastore_access.hpp
@@ -11,7 +11,7 @@
#include <map>
#include <optional>
#include <string>
-#include "yang_move.hpp"
+#include "yang_operations.hpp"
#include "ast_values.hpp"
#include "list_instance.hpp"
diff --git a/src/yang_move.hpp b/src/yang_operations.hpp
similarity index 90%
rename from src/yang_move.hpp
rename to src/yang_operations.hpp
index 0b1310c..c8dc1a0 100644
--- a/src/yang_move.hpp
+++ b/src/yang_operations.hpp
@@ -25,3 +25,8 @@
ListInstance m_path;
};
}
+
+enum class Datastore {
+ Running,
+ Startup
+};