Skip to content
Snippets Groups Projects
Commit 49dadd66 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-676: Explictly refer where markers are recorded in the code

parent 76f02201
No related branches found
No related tags found
1 merge request!266L2SS-676: Support parsing beamlet packets
...@@ -73,7 +73,12 @@ class SDPPacket(object): ...@@ -73,7 +73,12 @@ class SDPPacket(object):
@classmethod @classmethod
def valid_markers(cls): def valid_markers(cls):
""" Valid values for the 'marker_raw' header field for this class. """ """ Valid values for the 'marker_raw' header field for this class.
Each new packet class that introduces a new marker should be added
to the PACKET_CLASS_FOR_MARKER registry, which holds the mapping
marker -> packet class.
"""
# return all markers registered in PACKET_CLASS_FOR_MARKER which are for this class or any of its specialisations # return all markers registered in PACKET_CLASS_FOR_MARKER which are for this class or any of its specialisations
return [marker for marker, klass in PACKET_CLASS_FOR_MARKER.items() if issubclass(klass, cls)] return [marker for marker, klass in PACKET_CLASS_FOR_MARKER.items() if issubclass(klass, cls)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment