source: cpp/frams/_demos/loader_test_param.in @ 899

Last change on this file since 899 was 372, checked in by sz, 10 years ago

Renamed some classes and functions to make their purpose more obvious:

All MessageHandlers? must now be given the explicit "Enable" argument if you want them to automatically become active. This makes side effects clearly visible.

File size: 1.3 KB
RevLine 
[372]1#this is comment1 
2# this is comment2
3data:
4text:qwerty
5longtext:~
6Long multiline text
71\\~
822\~\n
9333\ \\
104444~
11deftext:other
12i1:-12345
13i2:-0X10
14i3:2
15f4:22222
16f3:2222
17f2:222
18f1:22
19f4:2
20x1:3.14
21x2:314
22notloaded:44
23notchanged:444
24notsaved:4444
25nosuchfield:value
26
27#all fields except x1 will have default values
28data:
29x1:just x (string extvalue)
30
31someotherdata:
32this_object:will be ignored
33because:we only load "data:" objects
34
35data:
36text:abcdefghijklmnopqrstuvwxyz
37i1:notanumber
38i2:-99999
39i3:+99999
40i4:notanumber_with_default
41f1:-0x100
42f2:-1e
43f3:+1e1
44f4:1ee
45x1:@Serialized:[1,2,3,1.00000,2e0,3.0,"x","]","\""]
46x2:@Serialized:{"a":[1,2,3],"b":"abc","c":1.23}
47
48data:
49i1:+0X10
50i2:1e2
51i3:-10
52x1:next line will overwrite this
53x1:@Serialized:{"a":[1,2,3],"b":^1,"c":^1}
54x2:@Serialized:[[100,^1],["abc"],[300,^2]]
55i3:5
56
57#invalid serialization examples ahead
58data:
59# ^2 references the object occuring after the reference - only back references are allowed (here: ^0=whole object or ^1=[1,2,3])
60x1:@Serialized:[[1,2,3],^2,[3,2,1]]
61# ^3 references the nonexistent objects (the last one is ^2=[3,2,1])
62x1:@Serialized:[[1,2,3],^3,[3,2,1]]
63# whitespaces are not allowed (except before numeric types, as a side effect of "whitespace+number" being valid number)
64x2:@Serialized:[1, 2, "3", { "key" : "value" }]
Note: See TracBrowser for help on using the repository browser.