cpp-common/bt2: move some enum classes out of enclosing classes
[babeltrace.git] / src / cpp-common / bt2 / field-path.hpp
index d203245f9a6c8a154852581be2bb4c90cf668f27..75a5b873f2fa3fa90df46355ddc92f6c90803a8f 100644 (file)
@@ -102,27 +102,27 @@ struct FieldPathRefFuncs final
 
 } /* namespace internal */
 
+enum class FieldPathScope
+{
+    PacketContext = BT_FIELD_PATH_SCOPE_PACKET_CONTEXT,
+    EventCommonContext = BT_FIELD_PATH_SCOPE_EVENT_COMMON_CONTEXT,
+    EventSpecificContext = BT_FIELD_PATH_SCOPE_EVENT_SPECIFIC_CONTEXT,
+    EventPayload = BT_FIELD_PATH_SCOPE_EVENT_PAYLOAD,
+};
+
 class ConstFieldPath final : public BorrowedObject<const bt_field_path>
 {
 public:
     using Shared = SharedObject<ConstFieldPath, const bt_field_path, internal::FieldPathRefFuncs>;
     using Iterator = BorrowedObjectIterator<ConstFieldPath>;
 
-    enum class Scope
-    {
-        PacketContext = BT_FIELD_PATH_SCOPE_PACKET_CONTEXT,
-        EventCommonContext = BT_FIELD_PATH_SCOPE_EVENT_COMMON_CONTEXT,
-        EventSpecificContext = BT_FIELD_PATH_SCOPE_EVENT_SPECIFIC_CONTEXT,
-        EventPayload = BT_FIELD_PATH_SCOPE_EVENT_PAYLOAD,
-    };
-
     explicit ConstFieldPath(const LibObjPtr libObjPtr) noexcept : _ThisBorrowedObject {libObjPtr}
     {
     }
 
-    Scope rootScope() const noexcept
+    FieldPathScope rootScope() const noexcept
     {
-        return static_cast<Scope>(bt_field_path_get_root_scope(this->libObjPtr()));
+        return static_cast<FieldPathScope>(bt_field_path_get_root_scope(this->libObjPtr()));
     }
 
     std::uint64_t length() const noexcept
This page took 0.024682 seconds and 4 git commands to generate.