Put an annotation from start to end, with ann as a string. This means you don't have to know the ann's number to write annotations to it.
(self, start, end, ann_str, message)
| 870 | self.out_ann = self.register(srd.OUTPUT_ANN) |
| 871 | |
| 872 | def puta(self, start, end, ann_str, message): |
| 873 | '''Put an annotation from start to end, with ann as a |
| 874 | string. This means you don't have to know the ann's |
| 875 | number to write annotations to it.''' |
| 876 | ann = [s[0] for s in self.annotations].index(ann_str) |
| 877 | self.put(start, end, self.out_ann, [ann, [message]]) |
| 878 | |
| 879 | def decode_adu(self, ss, es, data, direction): |
| 880 | '''Decode the next byte or bit (depending on type) in the ADU. |