example.py 467 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/python
# Auto generated example

import labcomm

class log_message(object):
    signature = labcomm.sample('log_message', 
        labcomm.struct([
            ('sequence', labcomm.INTEGER()),
            ('line', labcomm.array([0],
                labcomm.struct([
                    ('last', labcomm.BOOLEAN()),
                    ('data', labcomm.STRING())])))]))

class data(object):
    signature = labcomm.sample('data', 
        labcomm.FLOAT())