File: v-sim-toolConfigFile.html

package info (click to toggle)
v-sim 3.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 15,860 kB
  • sloc: ansic: 75,222; sh: 10,239; makefile: 580; python: 572; cpp: 353; xml: 130
file content (946 lines) | stat: -rw-r--r-- 63,823 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>toolConfigFile</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="V_Sim API - Reference Manual">
<link rel="up" href="ch01.html" title="Core tools">
<link rel="prev" href="v-sim-toolMatrix.html" title="toolMatrix">
<link rel="next" href="v-sim-toolFortran.html" title="toolFortran">
<meta name="generator" content="GTK-Doc V1.14 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="v-sim-toolMatrix.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">V_Sim API - Reference Manual</th>
<td><a accesskey="n" href="v-sim-toolFortran.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#v-sim-toolConfigFile.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#v-sim-toolConfigFile.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="toolConfigFile">
<a name="v-sim-toolConfigFile"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="v-sim-toolConfigFile.top_of_page"></a>toolConfigFile</span></h2>
<p>toolConfigFile — Generic read methods of the configuration files
are defined here.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="v-sim-toolConfigFile.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">#define             <a class="link" href="v-sim-toolConfigFile.html#TOOL-CONFIGFILE-ERROR:CAPS" title="TOOL_CONFIGFILE_ERROR">TOOL_CONFIGFILE_ERROR</a>
<a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a>              <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-getQuark" title="tool_configFile_getQuark ()">tool_configFile_getQuark</a>            ();
enum                <a class="link" href="v-sim-toolConfigFile.html#ToolConfigFileError" title="enum ToolConfigFileError">ToolConfigFileError</a>;
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-readFloatFromTokens" title="tool_configFile_readFloatFromTokens ()">tool_configFile_readFloatFromTokens</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **tokens</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *position</code></em>,
                                                         <em class="parameter"><code><span class="type">float</span> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> lineId</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-readFloat" title="tool_configFile_readFloat ()">tool_configFile_readFloat</a>           (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *line</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> position</code></em>,
                                                         <em class="parameter"><code><span class="type">float</span> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-readFloatWithElement" title="tool_configFile_readFloatWithElement ()">tool_configFile_readFloatWithElement</a>
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *line</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> position</code></em>,
                                                         <em class="parameter"><code><span class="type">float</span> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a> **ele</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-readIntegerFromTokens" title="tool_configFile_readIntegerFromTokens ()">tool_configFile_readIntegerFromTokens</a>
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **tokens</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *position</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> lineId</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-readInteger" title="tool_configFile_readInteger ()">tool_configFile_readInteger</a>         (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *line</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> position</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-readBooleanFromTokens" title="tool_configFile_readBooleanFromTokens ()">tool_configFile_readBooleanFromTokens</a>
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **tokens</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *position</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> lineId</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-readBoolean" title="tool_configFile_readBoolean ()">tool_configFile_readBoolean</a>         (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *line</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> position</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-readBooleanWithElement" title="tool_configFile_readBooleanWithElement ()">tool_configFile_readBooleanWithElement</a>
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *line</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> position</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a> **ele</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-readStringFromTokens" title="tool_configFile_readStringFromTokens ()">tool_configFile_readStringFromTokens</a>
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **tokens</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *position</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> ***values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> lineId</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-readString" title="tool_configFile_readString ()">tool_configFile_readString</a>          (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *line</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> position</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> ***values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> join</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-readStringWithElement" title="tool_configFile_readStringWithElement ()">tool_configFile_readStringWithElement</a>
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *line</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> position</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> ***values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a> **ele</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-readElementFromTokens" title="tool_configFile_readElementFromTokens ()">tool_configFile_readElementFromTokens</a>
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **tokens</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *position</code></em>,
                                                         <em class="parameter"><code><a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a> **values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> lineId</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-clampFloat" title="tool_configFile_clampFloat ()">tool_configFile_clampFloat</a>          (<em class="parameter"><code><span class="type">float</span> *variable</code></em>,
                                                         <em class="parameter"><code><span class="type">float</span> value</code></em>,
                                                         <em class="parameter"><code><span class="type">float</span> min</code></em>,
                                                         <em class="parameter"><code><span class="type">float</span> max</code></em>);
</pre>
</div>
<div class="refsect1" title="Description">
<a name="v-sim-toolConfigFile.description"></a><h2>Description</h2>
<p>
</p>
<p>These methods give generic tools to read common data in the
configuration files, such as arrays of float values or one
<a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a>... It also defines a enumeration of detailed errors
(see <a class="link" href="v-sim-toolConfigFile.html#ToolConfigFileError" title="enum ToolConfigFileError"><span class="type">ToolConfigFileError</span></a>) when reading a file. All read elements
are either from tokens (given <a href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strsplit"><code class="function">g_strsplit()</code></a>) or strings.</p>
<p>
</p>
</div>
<div class="refsect1" title="Details">
<a name="v-sim-toolConfigFile.details"></a><h2>Details</h2>
<div class="refsect2" title="TOOL_CONFIGFILE_ERROR">
<a name="TOOL-CONFIGFILE-ERROR:CAPS"></a><h3>TOOL_CONFIGFILE_ERROR</h3>
<pre class="programlisting">#define TOOL_CONFIGFILE_ERROR tool_configFile_getQuark()
</pre>
<p>
Domain used to parse config files.
</p>
</div>
<hr>
<div class="refsect2" title="tool_configFile_getQuark ()">
<a name="tool-configFile-getQuark"></a><h3>tool_configFile_getQuark ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a>              tool_configFile_getQuark            ();</pre>
<p>
Internal routine for error handling.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the <a href="/usr/share/gtk-doc/html/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> associated to errors related to configuration
files.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="enum ToolConfigFileError">
<a name="ToolConfigFileError"></a><h3>enum ToolConfigFileError</h3>
<pre class="programlisting">typedef enum
  {
    TOOL_CONFIGFILE_ERROR_EMPTY_LINE,
    TOOL_CONFIGFILE_ERROR_BAD_ELEMENT_NAME,
    TOOL_CONFIGFILE_ERROR_MAX_ELEMENT,
    TOOL_CONFIGFILE_ERROR_CREATED_ELEMENT,
    TOOL_CONFIGFILE_ERROR_VALUE,
    TOOL_CONFIGFILE_ERROR_READ,
    TOOL_CONFIGFILE_ERROR_MISSING,
    TOOL_CONFIGFILE_ERROR_TAG,
    TOOL_CONFIGFILE_ERROR_MARKUP
  } ToolConfigFileError;
</pre>
<p>
Possible errors when parsing a config file.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="TOOL-CONFIGFILE-ERROR-EMPTY-LINE:CAPS"></a><span class="term"><code class="literal">TOOL_CONFIGFILE_ERROR_EMPTY_LINE</code></span></p></td>
<td>error when reading the file, found an empty line,
                               where something should have been.
</td>
</tr>
<tr>
<td><p><a name="TOOL-CONFIGFILE-ERROR-BAD-ELEMENT-NAME:CAPS"></a><span class="term"><code class="literal">TOOL_CONFIGFILE_ERROR_BAD_ELEMENT_NAME</code></span></p></td>
<td>error when reading a <a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a> name.
</td>
</tr>
<tr>
<td><p><a name="TOOL-CONFIGFILE-ERROR-MAX-ELEMENT:CAPS"></a><span class="term"><code class="literal">TOOL_CONFIGFILE_ERROR_MAX_ELEMENT</code></span></p></td>
<td>error because too much <a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a> have been created.
</td>
</tr>
<tr>
<td><p><a name="TOOL-CONFIGFILE-ERROR-CREATED-ELEMENT:CAPS"></a><span class="term"><code class="literal">TOOL_CONFIGFILE_ERROR_CREATED_ELEMENT</code></span></p></td>
<td>error when creating a new <a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a>.
</td>
</tr>
<tr>
<td><p><a name="TOOL-CONFIGFILE-ERROR-VALUE:CAPS"></a><span class="term"><code class="literal">TOOL_CONFIGFILE_ERROR_VALUE</code></span></p></td>
<td>error of file format, values read are out of bounds.
</td>
</tr>
<tr>
<td><p><a name="TOOL-CONFIGFILE-ERROR-READ:CAPS"></a><span class="term"><code class="literal">TOOL_CONFIGFILE_ERROR_READ</code></span></p></td>
<td>error of file format (can't read variables...).
</td>
</tr>
<tr>
<td><p><a name="TOOL-CONFIGFILE-ERROR-MISSING:CAPS"></a><span class="term"><code class="literal">TOOL_CONFIGFILE_ERROR_MISSING</code></span></p></td>
<td>error of file format (missing
variables...).
</td>
</tr>
<tr>
<td><p><a name="TOOL-CONFIGFILE-ERROR-TAG:CAPS"></a><span class="term"><code class="literal">TOOL_CONFIGFILE_ERROR_TAG</code></span></p></td>
<td>error dealing with a tag.
</td>
</tr>
<tr>
<td><p><a name="TOOL-CONFIGFILE-ERROR-MARKUP:CAPS"></a><span class="term"><code class="literal">TOOL_CONFIGFILE_ERROR_MARKUP</code></span></p></td>
<td>error dealing with a markup (unkown one...).
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="tool_configFile_readFloatFromTokens ()">
<a name="tool-configFile-readFloatFromTokens"></a><h3>tool_configFile_readFloatFromTokens ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tool_configFile_readFloatFromTokens (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **tokens</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *position</code></em>,
                                                         <em class="parameter"><code><span class="type">float</span> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> lineId</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Read <em class="parameter"><code>size</code></em> floating point values from <em class="parameter"><code>tokens</code></em>, store them in <em class="parameter"><code>values</code></em> and returns
the new head in <em class="parameter"><code>tokens</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tokens</code></em> :</span></p></td>
<td>array of tokens resulting from a call to <a href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strsplit"><code class="function">g_strsplit()</code></a> with " " as separator ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
<td>IN, the position of the beginning in <em class="parameter"><code>tokens</code></em> ; OUT, one token
           after the last read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>
<td>allocated area to store read values ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the number of floating point values to be read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>lineId</code></em> :</span></p></td>
<td>the number of the line of the config
         file which the <em class="parameter"><code>line</code></em> argument is taken from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a location to store a possible reading error.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE if no error occured.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="tool_configFile_readFloat ()">
<a name="tool-configFile-readFloat"></a><h3>tool_configFile_readFloat ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tool_configFile_readFloat           (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *line</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> position</code></em>,
                                                         <em class="parameter"><code><span class="type">float</span> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Read <em class="parameter"><code>size</code></em> floating point values from <em class="parameter"><code>line</code></em> and store them in <em class="parameter"><code>values</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
<td>string where values are read from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
<td>the number of the line of the config
           file which the <em class="parameter"><code>line</code></em> argument is taken from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>
<td>allocated area to store read values ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the number of floating point values to be read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a location to store a possible reading error.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE if no error occured.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="tool_configFile_readFloatWithElement ()">
<a name="tool-configFile-readFloatWithElement"></a><h3>tool_configFile_readFloatWithElement ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tool_configFile_readFloatWithElement
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *line</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> position</code></em>,
                                                         <em class="parameter"><code><span class="type">float</span> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a> **ele</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Same as <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-readFloat" title="tool_configFile_readFloat ()"><code class="function">tool_configFile_readFloat()</code></a> but begins by reading an element
at the begining of the line.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
<td>string where values are read from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
<td>the number of the line of the config
           file which the <em class="parameter"><code>line</code></em> argument is taken from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>
<td>allocated area to store read values ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the number of floating point values to be read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ele</code></em> :</span></p></td>
<td>a pointer to a <a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a> location ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a location to store a possible reading error.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE if no error occured.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="tool_configFile_readIntegerFromTokens ()">
<a name="tool-configFile-readIntegerFromTokens"></a><h3>tool_configFile_readIntegerFromTokens ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tool_configFile_readIntegerFromTokens
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **tokens</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *position</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> lineId</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Read <em class="parameter"><code>size</code></em> integer values from <em class="parameter"><code>tokens</code></em>, store them in <em class="parameter"><code>values</code></em> and returns
the new head in <em class="parameter"><code>tokens</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tokens</code></em> :</span></p></td>
<td>array of tokens resulting from a call to <a href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strsplit"><code class="function">g_strsplit()</code></a> with " " as separator ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
<td>IN, the position of the beginning in <em class="parameter"><code>tokens</code></em> ; OUT, one token
           after the last read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>
<td>allocated area to store read values ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the number of floating point values to be read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>lineId</code></em> :</span></p></td>
<td>the number of the line of the config
         file which the <em class="parameter"><code>line</code></em> argument is taken from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a location to store a possible reading error.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE if no error occured.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="tool_configFile_readInteger ()">
<a name="tool-configFile-readInteger"></a><h3>tool_configFile_readInteger ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tool_configFile_readInteger         (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *line</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> position</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Read <em class="parameter"><code>size</code></em> integers from <em class="parameter"><code>line</code></em> and store them in <em class="parameter"><code>values</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
<td>string where values are read from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
<td>the number of the line of the config
           file which the <em class="parameter"><code>line</code></em> argument is taken from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>
<td>allocated area to store read values ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the number of floating point values to be read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a location to store a possible reading error.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE if no error occured.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="tool_configFile_readBooleanFromTokens ()">
<a name="tool-configFile-readBooleanFromTokens"></a><h3>tool_configFile_readBooleanFromTokens ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tool_configFile_readBooleanFromTokens
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **tokens</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *position</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> lineId</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Read <em class="parameter"><code>size</code></em> boolean values from <em class="parameter"><code>tokens</code></em>, store them in <em class="parameter"><code>values</code></em> and returns
the new head in <em class="parameter"><code>tokens</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tokens</code></em> :</span></p></td>
<td>array of tokens resulting from a call to <a href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strsplit"><code class="function">g_strsplit()</code></a> with " " as separator ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
<td>IN, the position of the beginning in <em class="parameter"><code>tokens</code></em> ; OUT, one token
           after the last read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>
<td>allocated area to store read values ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the number of floating point values to be read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>lineId</code></em> :</span></p></td>
<td>the number of the line of the config
         file which the <em class="parameter"><code>line</code></em> argument is taken from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a location to store a possible reading error.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE if no error occured.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="tool_configFile_readBoolean ()">
<a name="tool-configFile-readBoolean"></a><h3>tool_configFile_readBoolean ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tool_configFile_readBoolean         (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *line</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> position</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Read <em class="parameter"><code>size</code></em> boolean values from <em class="parameter"><code>line</code></em> and store them in <em class="parameter"><code>values</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
<td>string where values are read from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
<td>the number of the line of the config
           file which the <em class="parameter"><code>line</code></em> argument is taken from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>
<td>allocated area to store read values ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the number of boolean values to be read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a location to store a possible reading error.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE if no error occured.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="tool_configFile_readBooleanWithElement ()">
<a name="tool-configFile-readBooleanWithElement"></a><h3>tool_configFile_readBooleanWithElement ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tool_configFile_readBooleanWithElement
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *line</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> position</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a> **ele</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Same as <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-readBoolean" title="tool_configFile_readBoolean ()"><code class="function">tool_configFile_readBoolean()</code></a> but begins by reading an element
at the begining of the line.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
<td>string where values are read from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
<td>the number of the line of the config
           file which the <em class="parameter"><code>line</code></em> argument is taken from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>
<td>allocated area to store read values ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the number of boolean values to be read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ele</code></em> :</span></p></td>
<td>a pointer to a <a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a> location ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a location to store a possible reading error.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE if no error occured.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="tool_configFile_readStringFromTokens ()">
<a name="tool-configFile-readStringFromTokens"></a><h3>tool_configFile_readStringFromTokens ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tool_configFile_readStringFromTokens
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **tokens</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *position</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> ***values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> lineId</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Read <em class="parameter"><code>size</code></em> strings from <em class="parameter"><code>tokens</code></em>, store them in <em class="parameter"><code>values</code></em> and returns
the new head in <em class="parameter"><code>tokens</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tokens</code></em> :</span></p></td>
<td>array of tokens resulting from a call to <a href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strsplit"><code class="function">g_strsplit()</code></a> with " " as separator ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
<td>IN, the position of the beginning in <em class="parameter"><code>tokens</code></em> ; OUT, one token
           after the last read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>
<td>a location to point on a gchar** ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the number of floating point values to be read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>lineId</code></em> :</span></p></td>
<td>the number of the line of the config
         file which the <em class="parameter"><code>line</code></em> argument is taken from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a location to store a possible reading error.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE if no error occured.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="tool_configFile_readString ()">
<a name="tool-configFile-readString"></a><h3>tool_configFile_readString ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tool_configFile_readString          (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *line</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> position</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> ***values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> join</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Read <em class="parameter"><code>size</code></em> strings from <em class="parameter"><code>line</code></em> and <em class="parameter"><code>values</code></em> points on them. If more
strings than <em class="parameter"><code>size</code></em> are available, an error is raised ; except if
<em class="parameter"><code>join</code></em> is TRUE. In that case, the method return <em class="parameter"><code>size</code></em> tokens,
joining all remaining ones.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
<td>string where values are read from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
<td>the number of the line of the config
           file which the <em class="parameter"><code>line</code></em> argument is taken from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>
<td>a location to point on a gchar** ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the number of strings to be read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>join</code></em> :</span></p></td>
<td>a boolean ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a location to store a possible reading error.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE if no error occured, then <em class="parameter"><code>values</code></em> point on an allocated
         memory area that is NULL terminated and that must be freed
         with <a href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="tool_configFile_readStringWithElement ()">
<a name="tool-configFile-readStringWithElement"></a><h3>tool_configFile_readStringWithElement ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tool_configFile_readStringWithElement
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *line</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> position</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> ***values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a> **ele</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Same as <a class="link" href="v-sim-toolConfigFile.html#tool-configFile-readString" title="tool_configFile_readString ()"><code class="function">tool_configFile_readString()</code></a> but begins by reading an element
at the begining of the line.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
<td>string where values are read from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
<td>the number of the line of the config
           file which the <em class="parameter"><code>line</code></em> argument is taken from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>
<td>a location to point on a gchar** ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the number of strings to be read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ele</code></em> :</span></p></td>
<td>a pointer to a <a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a> location ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a location to store a possible reading error.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE if no error occured, then <em class="parameter"><code>values</code></em> point on an allocated
         memory area that is NULL terminated and that must be freed
         with <a href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="tool_configFile_readElementFromTokens ()">
<a name="tool-configFile-readElementFromTokens"></a><h3>tool_configFile_readElementFromTokens ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tool_configFile_readElementFromTokens
                                                        (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **tokens</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *position</code></em>,
                                                         <em class="parameter"><code><a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a> **values</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> size</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> lineId</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Read <em class="parameter"><code>size</code></em> <a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a> from <em class="parameter"><code>tokens</code></em>, store them in <em class="parameter"><code>values</code></em> and returns
the new head in <em class="parameter"><code>tokens</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tokens</code></em> :</span></p></td>
<td>array of tokens resulting from a call to <a href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strsplit"><code class="function">g_strsplit()</code></a> with " " as separator ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
<td>IN, the position of the beginning in <em class="parameter"><code>tokens</code></em> ; OUT, one token
           after the last read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>
<td>allocated area to store read values ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the number of <a class="link" href="v-sim-visu-elements.html#VisuElement"><span class="type">VisuElement</span></a> to be read ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>lineId</code></em> :</span></p></td>
<td>the number of the line of the config
         file which the <em class="parameter"><code>line</code></em> argument is taken from ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a location to store a possible reading error.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE if no error occured.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="tool_configFile_clampFloat ()">
<a name="tool-configFile-clampFloat"></a><h3>tool_configFile_clampFloat ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            tool_configFile_clampFloat          (<em class="parameter"><code><span class="type">float</span> *variable</code></em>,
                                                         <em class="parameter"><code><span class="type">float</span> value</code></em>,
                                                         <em class="parameter"><code><span class="type">float</span> min</code></em>,
                                                         <em class="parameter"><code><span class="type">float</span> max</code></em>);</pre>
<p>
It puts value in a variable if value is in min and max
or put min or max in if not. It return true if value
is out of bounds. Min and max are inclusive values.
If there is no max bounds then put max at a lower
value than min and if there is no min bound, put min
at a higher value than max.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>variable</code></em> :</span></p></td>
<td>a pointer to a storage for the value ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>the value to put in the storage ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>min</code></em> :</span></p></td>
<td>a lower bound ;
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>max</code></em> :</span></p></td>
<td>a upper bound.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE if the value is out of bounds.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.14</div>
</body>
</html>