import babeltrace.reader_field_declaration as field_declaration
import collections
+
def _create_event_declaration(event_class):
event_declaration = EventDeclaration.__new__(EventDeclaration)
event_declaration._event_class = event_class
return event_declaration
+
class EventDeclaration:
"""
An event declaration contains the properties of a class of events,
yield field_declaration._create_field_declaration(field_type, name,
scope)
+
# Priority of the scopes when searching for event fields
_SCOPES = [
common.CTFScope.EVENT_FIELDS,