Python: document CTFScope
[deliverable/babeltrace.git] / bindings / python / bt.py
index 6091bdb9cb26fdbdb798bb5fd3cedc976d6cfafa..9714eb4396ac8a9c2c8f36a8a6625c35d7c414fe 100644 (file)
@@ -427,14 +427,33 @@ class CTFTypeId:
 
 
 class CTFScope:
+    """
+    CTF scopes.
+    """
+
+    #: Packet header
     TRACE_PACKET_HEADER = 0
+
+    #: Packet context
     STREAM_PACKET_CONTEXT = 1
+
+    #: Event header
     STREAM_EVENT_HEADER = 2
+
+    #: Stream event context
     STREAM_EVENT_CONTEXT = 3
+
+    #: Event context
     EVENT_CONTEXT = 4
+
+    #: Event fields
     EVENT_FIELDS = 5
 
     def scope_name(scope):
+        """
+        Returns the name of the CTF scope *scope*.
+        """
+
         name = "UNKNOWN_SCOPE"
         constants = [
             attr for attr in dir(CTFScope) if not callable(
This page took 0.027825 seconds and 5 git commands to generate.