Commit 85c9e4c9 authored by Sven Gestegård Robertz's avatar Sven Gestegård Robertz
Browse files

Merge branch 'master' into pragma

parents 47c03b4e 23d7bf99
...@@ -8,45 +8,31 @@ if __name__ == '__main__': ...@@ -8,45 +8,31 @@ if __name__ == '__main__':
version = sys.argv[2] if len(sys.argv) == 3 else "LabComm20141009" version = sys.argv[2] if len(sys.argv) == 3 else "LabComm20141009"
encoder = labcomm.Encoder(labcomm.StreamWriter(open(sys.argv[1], 'w')), version) encoder = labcomm.Encoder(labcomm.StreamWriter(open(sys.argv[1], 'w')), version)
encoder.add_decl(test.twoLines.signature) encoder.add_decl(test.twoLines.signature)
l1 = test.line() tl = dict(
c1s = test.point() l1=dict(
c1sx = test.coord() start=dict(
c1sx.val = 1 x=dict(val=1),
c1sy = test.coord() y=dict(val=11)
c1sy.val = 11 ),
c1s.x = c1sx; end=dict(
c1s.y = c1sy; x=dict(val=2),
c1e = test.point() y=dict(val=22)
c1ex = test.coord() )
c1ex.val = 2 ),
c1ey = test.coord() l2=dict(
c1ey.val = 22 start=dict(
c1e.x = c1ex; x=dict(val=3),
c1e.y = c1ey; y=dict(val=33)
l1.start=c1s ),
l1.end = c1e end=dict(
l2 = test.line() x=dict(val=4),
c2s = test.point() y=dict(val=44)
c2sx = test.coord() )
c2sx.val = 3 ),
c2sy = test.coord() f=dict(
c2sy.val = 33 a=10,
c2s.x = c2sx; b=20,
c2s.y = c2sy; c=False
c2e = test.point() )
c2ex = test.coord() )
c2ex.val = 4
c2ey = test.coord()
c2ey.val = 44
c2e.x = c2ex;
c2e.y = c2ey;
l2.start=c2s
l2.end = c2e
tl = test.twoLines()
tl.l1 = l1
tl.l2 = l2
tl.f = test.foo()
tl.f.a = 10;
tl.f.b = 20;
tl.f.c = False;
encoder.encode(tl, test.twoLines.signature) encoder.encode(tl, test.twoLines.signature)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment