This file is indexed.

/usr/share/doc/libdballe-doc/c_api/classdballe_1_1Msg.html is in libdballe-doc 5.18-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   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
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>libdballe: dballe::Msg Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">libdballe
   &#160;<span id="projectnumber">5.18</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>dballe</b>      </li>
      <li class="navelem"><a class="el" href="classdballe_1_1Msg.html">Msg</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Data Fields</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">dballe::Msg Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="dballe::Msg" -->
<p>Storage for related physical data.  
 <a href="classdballe_1_1Msg.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="msg_8h_source.html">msg.h</a>&gt;</code></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a6d4a97f777e6249ee33ee29c74bc2e4d">Msg</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new dba_msg.  <a href="#a6d4a97f777e6249ee33ee29c74bc2e4d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a266c08a0eb60d7f97f674da9e1a55d0e"></a><!-- doxytag: member="dballe::Msg::Msg" ref="a266c08a0eb60d7f97f674da9e1a55d0e" args="(const Msg &amp;m)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Msg</b> (const <a class="el" href="classdballe_1_1Msg.html">Msg</a> &amp;m)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8f09fadf466000e70ed460e95a3259d8"></a><!-- doxytag: member="dballe::Msg::operator=" ref="a8f09fadf466000e70ed460e95a3259d8" args="(const Msg &amp;m)" -->
<a class="el" href="classdballe_1_1Msg.html">Msg</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classdballe_1_1Msg.html">Msg</a> &amp;m)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abafa4ae6590edafaa18b0526e3269eda"></a><!-- doxytag: member="dballe::Msg::clear" ref="abafa4ae6590edafaa18b0526e3269eda" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#abafa4ae6590edafaa18b0526e3269eda">clear</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove all information from <a class="el" href="classdballe_1_1Msg.html" title="Storage for related physical data.">Msg</a>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#aadefbac6c9ad4cb90113f68267334e93">add_context</a> (std::auto_ptr&lt; <a class="el" href="classdballe_1_1msg_1_1Context.html">msg::Context</a> &gt; ctx)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a missing context, taking care of its memory management.  <a href="#aadefbac6c9ad4cb90113f68267334e93"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a4154420d14a186d3fbbe5f2b2f6baaf2">remove_context</a> (const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;lev, const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;tr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove a context from the message.  <a href="#a4154420d14a186d3fbbe5f2b2f6baaf2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classdballe_1_1msg_1_1Context.html">msg::Context</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#ad0f303c8aa9f3a4ee2dcce73186b93fb">find_context</a> (const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;lev, const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;tr) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Find a <a class="el" href="classdballe_1_1msg_1_1Context.html" title="Store an array of physical data all on the same level.">msg::Context</a> given its description.  <a href="#ad0f303c8aa9f3a4ee2dcce73186b93fb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classdballe_1_1msg_1_1Context.html">msg::Context</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#ad7d81b57e8438479dfe166d07ff3e282">find_station_context</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Find the station info context.  <a href="#ad7d81b57e8438479dfe166d07ff3e282"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdballe_1_1msg_1_1Context.html">msg::Context</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a9b9f6fa7c2e7ab21d5a163b0ea51a93e">edit_context</a> (const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;lev, const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;tr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Find a <a class="el" href="classdballe_1_1msg_1_1Context.html" title="Store an array of physical data all on the same level.">msg::Context</a> given its description.  <a href="#a9b9f6fa7c2e7ab21d5a163b0ea51a93e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdballe_1_1msg_1_1Context.html">msg::Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#af8ebe75b78dd6264934451f0aabab483">obtain_context</a> (const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;lev, const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;tr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Find a <a class="el" href="classdballe_1_1msg_1_1Context.html" title="Store an array of physical data all on the same level.">msg::Context</a> given its description, creating it if it does not exist.  <a href="#af8ebe75b78dd6264934451f0aabab483"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const wreport::Var *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a8effea6a6df2412326ceee08937de7f0">find</a> (wreport::Varcode code, const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;lev, const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;tr) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Find a variable given its description.  <a href="#a8effea6a6df2412326ceee08937de7f0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">wreport::Var *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a55ec7ccb5f06ff3d0958836083626d78">edit</a> (wreport::Varcode code, const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;lev, const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;tr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Find a variable given its description.  <a href="#a55ec7ccb5f06ff3d0958836083626d78"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const wreport::Var *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a3650de9005034f10c4cc62be57d8d095">find_by_id</a> (int id) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Find a datum given its shortcut ID.  <a href="#a3650de9005034f10c4cc62be57d8d095"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classdballe_1_1msg_1_1Context.html">msg::Context</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#ac1e868668feb90d3f2d2d99d88ce3625">find_context_by_id</a> (int id) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Find a contexts given level and timerange found in a shortcut ID.  <a href="#ac1e868668feb90d3f2d2d99d88ce3625"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">wreport::Var *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#af7cd2b0ae69c07cf452925560953efc7">edit_by_id</a> (int id)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Find a datum given its shortcut ID.  <a href="#af7cd2b0ae69c07cf452925560953efc7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a5f183dff253345ee365ff0387e0ab249">set</a> (const wreport::Var &amp;var, wreport::Varcode code, const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;lev, const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;tr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add or replace a value.  <a href="#a5f183dff253345ee365ff0387e0ab249"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#aea2b710826e6193ffe7459124da32f5f">set_by_id</a> (const wreport::Var &amp;var, int shortcut)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add or replace a value.  <a href="#aea2b710826e6193ffe7459124da32f5f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a54eebcd8dc7f2d35d848cffb4a63669f">set</a> (std::auto_ptr&lt; wreport::Var &gt; var, const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;lev, const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;tr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add or replace a value, taking ownership of the source variable without copying it.  <a href="#a54eebcd8dc7f2d35d848cffb4a63669f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a8e6b9fc8d49da9085cc0a4c88032e878">seti</a> (wreport::Varcode code, int val, int conf, const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;lev, const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;tr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add or replace an integer value in the dba_msg.  <a href="#a8e6b9fc8d49da9085cc0a4c88032e878"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a9cdffeed29fa1be9ac3a5fc879b6f217">setd</a> (wreport::Varcode code, double val, int conf, const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;lev, const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;tr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add or replace a double value in the dba_msg.  <a href="#a9cdffeed29fa1be9ac3a5fc879b6f217"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a007407ccd119bb88b954881087a05051">setc</a> (wreport::Varcode code, const char *val, int conf, const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;lev, const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;tr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add or replace a string value in the dba_msg.  <a href="#a007407ccd119bb88b954881087a05051"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a714c7ec53a0ca12140e5fc8d6208a9b8"></a><!-- doxytag: member="dballe::Msg::set_date" ref="a714c7ec53a0ca12140e5fc8d6208a9b8" args="(const char *date)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a714c7ec53a0ca12140e5fc8d6208a9b8">set_date</a> (const char *date)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the date from a string in the format "YYYY-MM-DD HH:MM:SS". <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a8d682eaea9f84666d80fbe87a4ff0ce6">sounding_pack_levels</a> (<a class="el" href="classdballe_1_1Msg.html">Msg</a> &amp;dst) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy to dest all the variable in this message that match <em>filter</em> TODO: to be implemented.  <a href="#a8d682eaea9f84666d80fbe87a4ff0ce6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a1db99e6d6baec468d275bf106210506b">parse_date</a> (int *values) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse the date set in the <a class="el" href="classdballe_1_1Msg.html" title="Storage for related physical data.">Msg</a>.  <a href="#a1db99e6d6baec468d275bf106210506b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a9a4ac6e0ad2d0c4439ce9e6c7f86783f">from_csv</a> (<a class="el" href="classdballe_1_1CSVReader.html">CSVReader</a> &amp;in)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Read data from a CSV input.  <a href="#a9a4ac6e0ad2d0c4439ce9e6c7f86783f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a851555325e7ed5ec95b775c546dde038"></a><!-- doxytag: member="dballe::Msg::to_csv" ref="a851555325e7ed5ec95b775c546dde038" args="(std::ostream &amp;out) const " -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a851555325e7ed5ec95b775c546dde038">to_csv</a> (std::ostream &amp;out) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Output in CSV format. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#ab0478ed34a701af3e00b3320aed405be">print</a> (FILE *out) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Dump all the contents of the message to the given stream.  <a href="#ab0478ed34a701af3e00b3320aed405be"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a81bb1a76d61fede7a64714c95503f9e3">diff</a> (const <a class="el" href="classdballe_1_1Msg.html">Msg</a> &amp;msg) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the differences between two <a class="el" href="classdballe_1_1Msg.html" title="Storage for related physical data.">Msg</a>.  <a href="#a81bb1a76d61fede7a64714c95503f9e3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a80053c1fa6ff8a60bba85f0b6c32a742"></a><!-- doxytag: member="dballe::Msg::lua_push" ref="a80053c1fa6ff8a60bba85f0b6c32a742" args="(struct lua_State *L)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a80053c1fa6ff8a60bba85f0b6c32a742">lua_push</a> (struct lua_State *L)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Push the variable as an object in the lua stack. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aabc331d339dc62e293d44ce1bf698b43"></a><!-- doxytag: member="dballe::Msg::csv_header" ref="aabc331d339dc62e293d44ce1bf698b43" args="(std::ostream &amp;out)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#aabc331d339dc62e293d44ce1bf698b43">csv_header</a> (std::ostream &amp;out)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Output the CSV header. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1d685b4981ede38c359dc23d6893b015"></a><!-- doxytag: member="dballe::Msg::type_from_repmemo" ref="a1d685b4981ede38c359dc23d6893b015" args="(const char *repmemo)" -->
static MsgType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a1d685b4981ede38c359dc23d6893b015">type_from_repmemo</a> (const char *repmemo)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the message source type corresponding to the given report code. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f281f4317cc0b73d31be1d56ff2e82e"></a><!-- doxytag: member="dballe::Msg::repmemo_from_type" ref="a0f281f4317cc0b73d31be1d56ff2e82e" args="(MsgType type)" -->
static const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a0f281f4317cc0b73d31be1d56ff2e82e">repmemo_from_type</a> (MsgType <a class="el" href="classdballe_1_1Msg.html#a0fc10e622a7471d7e030fee10117188d">type</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the report code corresponding to the given message source type. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classdballe_1_1Msg.html">Msg</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a5334e294b03b65c2eec866448c013cfd">lua_check</a> (struct lua_State *L, int idx)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Check that the element at <em>idx</em> is a dba_msg.  <a href="#a5334e294b03b65c2eec866448c013cfd"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0fc10e622a7471d7e030fee10117188d"></a><!-- doxytag: member="dballe::Msg::type" ref="a0fc10e622a7471d7e030fee10117188d" args="" -->
MsgType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a0fc10e622a7471d7e030fee10117188d">type</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Source of the data. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a359fb5c8dba17b2e788210e6b22e28a0"></a><!-- doxytag: member="dballe::Msg::data" ref="a359fb5c8dba17b2e788210e6b22e28a0" args="" -->
std::vector&lt; <a class="el" href="classdballe_1_1msg_1_1Context.html">msg::Context</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a359fb5c8dba17b2e788210e6b22e28a0">data</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Context in the message. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8fb163ea3f5041e3f456fe2ec56b8fc2"></a><!-- doxytag: member="dballe::Msg::find_index" ref="a8fb163ea3f5041e3f456fe2ec56b8fc2" args="(const Level &amp;lev, const Trange &amp;tr) const " -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdballe_1_1Msg.html#a8fb163ea3f5041e3f456fe2ec56b8fc2">find_index</a> (const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;lev, const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;tr) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the index of the given context, or -1 if it was not found. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Storage for related physical data. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a6d4a97f777e6249ee33ee29c74bc2e4d"></a><!-- doxytag: member="dballe::Msg::Msg" ref="a6d4a97f777e6249ee33ee29c74bc2e4d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdballe_1_1Msg.html#a6d4a97f777e6249ee33ee29c74bc2e4d">dballe::Msg::Msg</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new dba_msg. </p>
<p>By default, type is MSG_GENERIC </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aadefbac6c9ad4cb90113f68267334e93"></a><!-- doxytag: member="dballe::Msg::add_context" ref="aadefbac6c9ad4cb90113f68267334e93" args="(std::auto_ptr&lt; msg::Context &gt; ctx)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classdballe_1_1Msg.html#aadefbac6c9ad4cb90113f68267334e93">dballe::Msg::add_context</a> </td>
          <td>(</td>
          <td class="paramtype">std::auto_ptr&lt; <a class="el" href="classdballe_1_1msg_1_1Context.html">msg::Context</a> &gt;&#160;</td>
          <td class="paramname"><em>ctx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add a missing context, taking care of its memory management. </p>
<p>Note: if the context already exists, an exception is thrown </p>

</div>
</div>
<a class="anchor" id="a81bb1a76d61fede7a64714c95503f9e3"></a><!-- doxytag: member="dballe::Msg::diff" ref="a81bb1a76d61fede7a64714c95503f9e3" args="(const Msg &amp;msg) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned <a class="el" href="classdballe_1_1Msg.html#a81bb1a76d61fede7a64714c95503f9e3">dballe::Msg::diff</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classdballe_1_1Msg.html">Msg</a> &amp;&#160;</td>
          <td class="paramname"><em>msg</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compute the differences between two <a class="el" href="classdballe_1_1Msg.html" title="Storage for related physical data.">Msg</a>. </p>
<p>Details of the differences found will be formatted using the notes system (</p>
<dl class="see"><dt><b>See also:</b></dt><dd>notes.h).</dd></dl>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">msg</td><td>Message to compare this one to </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of differences found </dd></dl>

</div>
</div>
<a class="anchor" id="a55ec7ccb5f06ff3d0958836083626d78"></a><!-- doxytag: member="dballe::Msg::edit" ref="a55ec7ccb5f06ff3d0958836083626d78" args="(wreport::Varcode code, const Level &amp;lev, const Trange &amp;tr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wreport::Var* <a class="el" href="classdballe_1_1Msg.html#a55ec7ccb5f06ff3d0958836083626d78">dballe::Msg::edit</a> </td>
          <td>(</td>
          <td class="paramtype">wreport::Varcode&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;&#160;</td>
          <td class="paramname"><em>lev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;&#160;</td>
          <td class="paramname"><em>tr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Find a variable given its description. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>The ::dba_varcode of the variable to query. See vartable::h </td></tr>
    <tr><td class="paramname">lev</td><td>The <a class="el" href="structdballe_1_1Level.html">Level</a> to query </td></tr>
    <tr><td class="paramname">tr</td><td>The <a class="el" href="structdballe_1_1Trange.html">Trange</a> to query </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The variable found, or NULL if it was not found. </dd></dl>

</div>
</div>
<a class="anchor" id="af7cd2b0ae69c07cf452925560953efc7"></a><!-- doxytag: member="dballe::Msg::edit_by_id" ref="af7cd2b0ae69c07cf452925560953efc7" args="(int id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wreport::Var* <a class="el" href="classdballe_1_1Msg.html#af7cd2b0ae69c07cf452925560953efc7">dballe::Msg::edit_by_id</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Find a datum given its shortcut ID. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">msg</td><td>The message to query </td></tr>
    <tr><td class="paramname">id</td><td>Shortcut ID of the value to set (see <a class="el" href="vars_8h.html">vars.h</a>) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The value found, or NULL if it was not found. </dd></dl>

</div>
</div>
<a class="anchor" id="a9b9f6fa7c2e7ab21d5a163b0ea51a93e"></a><!-- doxytag: member="dballe::Msg::edit_context" ref="a9b9f6fa7c2e7ab21d5a163b0ea51a93e" args="(const Level &amp;lev, const Trange &amp;tr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdballe_1_1msg_1_1Context.html">msg::Context</a>* <a class="el" href="classdballe_1_1Msg.html#a9b9f6fa7c2e7ab21d5a163b0ea51a93e">dballe::Msg::edit_context</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;&#160;</td>
          <td class="paramname"><em>lev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;&#160;</td>
          <td class="paramname"><em>tr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Find a <a class="el" href="classdballe_1_1msg_1_1Context.html" title="Store an array of physical data all on the same level.">msg::Context</a> given its description. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lev</td><td>The <a class="el" href="structdballe_1_1Level.html">Level</a> to query </td></tr>
    <tr><td class="paramname">tr</td><td>The <a class="el" href="structdballe_1_1Trange.html">Trange</a> to query </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The context found, or NULL if it was not found. </dd></dl>

</div>
</div>
<a class="anchor" id="a8effea6a6df2412326ceee08937de7f0"></a><!-- doxytag: member="dballe::Msg::find" ref="a8effea6a6df2412326ceee08937de7f0" args="(wreport::Varcode code, const Level &amp;lev, const Trange &amp;tr) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const wreport::Var* <a class="el" href="classdballe_1_1Msg.html#a8effea6a6df2412326ceee08937de7f0">dballe::Msg::find</a> </td>
          <td>(</td>
          <td class="paramtype">wreport::Varcode&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;&#160;</td>
          <td class="paramname"><em>lev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;&#160;</td>
          <td class="paramname"><em>tr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Find a variable given its description. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>The ::dba_varcode of the variable to query. See vartable::h </td></tr>
    <tr><td class="paramname">lev</td><td>The <a class="el" href="structdballe_1_1Level.html">Level</a> to query </td></tr>
    <tr><td class="paramname">tr</td><td>The <a class="el" href="structdballe_1_1Trange.html">Trange</a> to query </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The variable found, or NULL if it was not found. </dd></dl>

</div>
</div>
<a class="anchor" id="a3650de9005034f10c4cc62be57d8d095"></a><!-- doxytag: member="dballe::Msg::find_by_id" ref="a3650de9005034f10c4cc62be57d8d095" args="(int id) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const wreport::Var* <a class="el" href="classdballe_1_1Msg.html#a3650de9005034f10c4cc62be57d8d095">dballe::Msg::find_by_id</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Find a datum given its shortcut ID. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">msg</td><td>The message to query </td></tr>
    <tr><td class="paramname">id</td><td>Shortcut ID of the value to set (see <a class="el" href="vars_8h.html">vars.h</a>) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The value found, or NULL if it was not found. </dd></dl>

</div>
</div>
<a class="anchor" id="ad0f303c8aa9f3a4ee2dcce73186b93fb"></a><!-- doxytag: member="dballe::Msg::find_context" ref="ad0f303c8aa9f3a4ee2dcce73186b93fb" args="(const Level &amp;lev, const Trange &amp;tr) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classdballe_1_1msg_1_1Context.html">msg::Context</a>* <a class="el" href="classdballe_1_1Msg.html#ad0f303c8aa9f3a4ee2dcce73186b93fb">dballe::Msg::find_context</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;&#160;</td>
          <td class="paramname"><em>lev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;&#160;</td>
          <td class="paramname"><em>tr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Find a <a class="el" href="classdballe_1_1msg_1_1Context.html" title="Store an array of physical data all on the same level.">msg::Context</a> given its description. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lev</td><td>The <a class="el" href="structdballe_1_1Level.html">Level</a> to query </td></tr>
    <tr><td class="paramname">tr</td><td>The <a class="el" href="structdballe_1_1Trange.html">Trange</a> to query </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The context found, or NULL if it was not found. </dd></dl>

</div>
</div>
<a class="anchor" id="ac1e868668feb90d3f2d2d99d88ce3625"></a><!-- doxytag: member="dballe::Msg::find_context_by_id" ref="ac1e868668feb90d3f2d2d99d88ce3625" args="(int id) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classdballe_1_1msg_1_1Context.html">msg::Context</a>* <a class="el" href="classdballe_1_1Msg.html#ac1e868668feb90d3f2d2d99d88ce3625">dballe::Msg::find_context_by_id</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Find a contexts given level and timerange found in a shortcut ID. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">msg</td><td>The message to query </td></tr>
    <tr><td class="paramname">id</td><td>Shortcut ID with the level information to use </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The context found, or NULL if it was not found. </dd></dl>

</div>
</div>
<a class="anchor" id="ad7d81b57e8438479dfe166d07ff3e282"></a><!-- doxytag: member="dballe::Msg::find_station_context" ref="ad7d81b57e8438479dfe166d07ff3e282" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classdballe_1_1msg_1_1Context.html">msg::Context</a>* <a class="el" href="classdballe_1_1Msg.html#ad7d81b57e8438479dfe166d07ff3e282">dballe::Msg::find_station_context</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Find the station info context. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The context found, or NULL if it was not found. </dd></dl>

</div>
</div>
<a class="anchor" id="a9a4ac6e0ad2d0c4439ce9e6c7f86783f"></a><!-- doxytag: member="dballe::Msg::from_csv" ref="a9a4ac6e0ad2d0c4439ce9e6c7f86783f" args="(CSVReader &amp;in)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classdballe_1_1Msg.html#a9a4ac6e0ad2d0c4439ce9e6c7f86783f">dballe::Msg::from_csv</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classdballe_1_1CSVReader.html">CSVReader</a> &amp;&#160;</td>
          <td class="paramname"><em>in</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Read data from a CSV input. </p>
<p>Reading stops when one of Longitude, Latitude, Report or Date changes.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if some CSV data has been found, false on EOF </dd></dl>

</div>
</div>
<a class="anchor" id="a5334e294b03b65c2eec866448c013cfd"></a><!-- doxytag: member="dballe::Msg::lua_check" ref="a5334e294b03b65c2eec866448c013cfd" args="(struct lua_State *L, int idx)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classdballe_1_1Msg.html">Msg</a>* <a class="el" href="classdballe_1_1Msg.html#a5334e294b03b65c2eec866448c013cfd">dballe::Msg::lua_check</a> </td>
          <td>(</td>
          <td class="paramtype">struct lua_State *&#160;</td>
          <td class="paramname"><em>L</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Check that the element at <em>idx</em> is a dba_msg. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the dba_msg element, or NULL if the check failed </dd></dl>

</div>
</div>
<a class="anchor" id="af8ebe75b78dd6264934451f0aabab483"></a><!-- doxytag: member="dballe::Msg::obtain_context" ref="af8ebe75b78dd6264934451f0aabab483" args="(const Level &amp;lev, const Trange &amp;tr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdballe_1_1msg_1_1Context.html">msg::Context</a>&amp; <a class="el" href="classdballe_1_1Msg.html#af8ebe75b78dd6264934451f0aabab483">dballe::Msg::obtain_context</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;&#160;</td>
          <td class="paramname"><em>lev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;&#160;</td>
          <td class="paramname"><em>tr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Find a <a class="el" href="classdballe_1_1msg_1_1Context.html" title="Store an array of physical data all on the same level.">msg::Context</a> given its description, creating it if it does not exist. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lev</td><td>The <a class="el" href="structdballe_1_1Level.html">Level</a> to query </td></tr>
    <tr><td class="paramname">tr</td><td>The <a class="el" href="structdballe_1_1Trange.html">Trange</a> to query </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The context found </dd></dl>

</div>
</div>
<a class="anchor" id="a1db99e6d6baec468d275bf106210506b"></a><!-- doxytag: member="dballe::Msg::parse_date" ref="a1db99e6d6baec468d275bf106210506b" args="(int *values) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classdballe_1_1Msg.html#a1db99e6d6baec468d275bf106210506b">dballe::Msg::parse_date</a> </td>
          <td>(</td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>values</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parse the date set in the <a class="el" href="classdballe_1_1Msg.html" title="Storage for related physical data.">Msg</a>. </p>
<p>This function will examine the values year, month, day, hour, min and sec, and will compute the lower bound of the datetime they represent.</p>
<dl class="retval"><dt><b>Return values:</b></dt><dd>
  <table class="retval">
    <tr><td class="paramname">values</td><td>An array of 6 integers that will be filled with the minimum year, month, day, hour, minute and seconds. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ab0478ed34a701af3e00b3320aed405be"></a><!-- doxytag: member="dballe::Msg::print" ref="ab0478ed34a701af3e00b3320aed405be" args="(FILE *out) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classdballe_1_1Msg.html#ab0478ed34a701af3e00b3320aed405be">dballe::Msg::print</a> </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>out</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Dump all the contents of the message to the given stream. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">out</td><td>The stream to dump the contents of the dba_msg to. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a4154420d14a186d3fbbe5f2b2f6baaf2"></a><!-- doxytag: member="dballe::Msg::remove_context" ref="a4154420d14a186d3fbbe5f2b2f6baaf2" args="(const Level &amp;lev, const Trange &amp;tr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classdballe_1_1Msg.html#a4154420d14a186d3fbbe5f2b2f6baaf2">dballe::Msg::remove_context</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;&#160;</td>
          <td class="paramname"><em>lev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;&#160;</td>
          <td class="paramname"><em>tr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Remove a context from the message. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the context was removed, false if it did not exist </dd></dl>

</div>
</div>
<a class="anchor" id="a5f183dff253345ee365ff0387e0ab249"></a><!-- doxytag: member="dballe::Msg::set" ref="a5f183dff253345ee365ff0387e0ab249" args="(const wreport::Var &amp;var, wreport::Varcode code, const Level &amp;lev, const Trange &amp;tr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classdballe_1_1Msg.html#a5f183dff253345ee365ff0387e0ab249">dballe::Msg::set</a> </td>
          <td>(</td>
          <td class="paramtype">const wreport::Var &amp;&#160;</td>
          <td class="paramname"><em>var</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wreport::Varcode&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;&#160;</td>
          <td class="paramname"><em>lev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;&#160;</td>
          <td class="paramname"><em>tr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add or replace a value. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">var</td><td>The Var with the value to set </td></tr>
    <tr><td class="paramname">code</td><td>The dba_varcode of the destination value. If it is different than the varcode of var, a conversion will be attempted. </td></tr>
    <tr><td class="paramname">lev</td><td>The <a class="el" href="structdballe_1_1Level.html">Level</a> of the value </td></tr>
    <tr><td class="paramname">tr</td><td>The <a class="el" href="structdballe_1_1Trange.html">Trange</a> of the value </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a54eebcd8dc7f2d35d848cffb4a63669f"></a><!-- doxytag: member="dballe::Msg::set" ref="a54eebcd8dc7f2d35d848cffb4a63669f" args="(std::auto_ptr&lt; wreport::Var &gt; var, const Level &amp;lev, const Trange &amp;tr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classdballe_1_1Msg.html#a5f183dff253345ee365ff0387e0ab249">dballe::Msg::set</a> </td>
          <td>(</td>
          <td class="paramtype">std::auto_ptr&lt; wreport::Var &gt;&#160;</td>
          <td class="paramname"><em>var</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;&#160;</td>
          <td class="paramname"><em>lev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;&#160;</td>
          <td class="paramname"><em>tr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add or replace a value, taking ownership of the source variable without copying it. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">msg</td><td>The Var with the value to set. This <a class="el" href="classdballe_1_1Msg.html" title="Storage for related physical data.">Msg</a> will take ownership of memory management. </td></tr>
    <tr><td class="paramname">lev</td><td>The <a class="el" href="structdballe_1_1Level.html">Level</a> of the value </td></tr>
    <tr><td class="paramname">tr</td><td>The <a class="el" href="structdballe_1_1Trange.html">Trange</a> of the value </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aea2b710826e6193ffe7459124da32f5f"></a><!-- doxytag: member="dballe::Msg::set_by_id" ref="aea2b710826e6193ffe7459124da32f5f" args="(const wreport::Var &amp;var, int shortcut)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classdballe_1_1Msg.html#aea2b710826e6193ffe7459124da32f5f">dballe::Msg::set_by_id</a> </td>
          <td>(</td>
          <td class="paramtype">const wreport::Var &amp;&#160;</td>
          <td class="paramname"><em>var</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>shortcut</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add or replace a value. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">var</td><td>The Var with the value to set </td></tr>
    <tr><td class="paramname">shortcut</td><td>Shortcut ID of the value to set </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a007407ccd119bb88b954881087a05051"></a><!-- doxytag: member="dballe::Msg::setc" ref="a007407ccd119bb88b954881087a05051" args="(wreport::Varcode code, const char *val, int conf, const Level &amp;lev, const Trange &amp;tr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classdballe_1_1Msg.html#a007407ccd119bb88b954881087a05051">dballe::Msg::setc</a> </td>
          <td>(</td>
          <td class="paramtype">wreport::Varcode&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>val</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>conf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;&#160;</td>
          <td class="paramname"><em>lev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;&#160;</td>
          <td class="paramname"><em>tr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add or replace a string value in the dba_msg. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>The dba_varcode of the destination value. See vartable::h </td></tr>
    <tr><td class="paramname">val</td><td>The string value of the data </td></tr>
    <tr><td class="paramname">conf</td><td>The confidence interval of the data, as the value of a B33007 WMO B (per cent confidence) table entry, that is, a number between 0 and 100 inclusive. -1 means no confidence interval attribute. </td></tr>
    <tr><td class="paramname">lev</td><td>The <a class="el" href="structdballe_1_1Level.html">Level</a> of the value </td></tr>
    <tr><td class="paramname">tr</td><td>The <a class="el" href="structdballe_1_1Trange.html">Trange</a> of the value </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9cdffeed29fa1be9ac3a5fc879b6f217"></a><!-- doxytag: member="dballe::Msg::setd" ref="a9cdffeed29fa1be9ac3a5fc879b6f217" args="(wreport::Varcode code, double val, int conf, const Level &amp;lev, const Trange &amp;tr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classdballe_1_1Msg.html#a9cdffeed29fa1be9ac3a5fc879b6f217">dballe::Msg::setd</a> </td>
          <td>(</td>
          <td class="paramtype">wreport::Varcode&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>val</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>conf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;&#160;</td>
          <td class="paramname"><em>lev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;&#160;</td>
          <td class="paramname"><em>tr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add or replace a double value in the dba_msg. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>The dba_varcode of the destination value. See vartable::h </td></tr>
    <tr><td class="paramname">val</td><td>The double value of the data </td></tr>
    <tr><td class="paramname">conf</td><td>The confidence interval of the data, as the value of a B33007 WMO B (per cent confidence) table entry, that is, a number between 0 and 100 inclusive. -1 means no confidence interval attribute. </td></tr>
    <tr><td class="paramname">lev</td><td>The <a class="el" href="structdballe_1_1Level.html">Level</a> of the value </td></tr>
    <tr><td class="paramname">tr</td><td>The <a class="el" href="structdballe_1_1Trange.html">Trange</a> of the value </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8e6b9fc8d49da9085cc0a4c88032e878"></a><!-- doxytag: member="dballe::Msg::seti" ref="a8e6b9fc8d49da9085cc0a4c88032e878" args="(wreport::Varcode code, int val, int conf, const Level &amp;lev, const Trange &amp;tr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classdballe_1_1Msg.html#a8e6b9fc8d49da9085cc0a4c88032e878">dballe::Msg::seti</a> </td>
          <td>(</td>
          <td class="paramtype">wreport::Varcode&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>val</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>conf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Level.html">Level</a> &amp;&#160;</td>
          <td class="paramname"><em>lev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structdballe_1_1Trange.html">Trange</a> &amp;&#160;</td>
          <td class="paramname"><em>tr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add or replace an integer value in the dba_msg. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>The dba_varcode of the destination value.. See vartable::h </td></tr>
    <tr><td class="paramname">val</td><td>The integer value of the data </td></tr>
    <tr><td class="paramname">conf</td><td>The confidence interval of the data, as the value of a B33007 WMO B (per cent confidence) table entry, that is, a number between 0 and 100 inclusive. -1 means no confidence interval attribute. </td></tr>
    <tr><td class="paramname">lev</td><td>The <a class="el" href="structdballe_1_1Level.html">Level</a> of the value </td></tr>
    <tr><td class="paramname">tr</td><td>The <a class="el" href="structdballe_1_1Trange.html">Trange</a> of the value </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8d682eaea9f84666d80fbe87a4ff0ce6"></a><!-- doxytag: member="dballe::Msg::sounding_pack_levels" ref="a8d682eaea9f84666d80fbe87a4ff0ce6" args="(Msg &amp;dst) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classdballe_1_1Msg.html#a8d682eaea9f84666d80fbe87a4ff0ce6">dballe::Msg::sounding_pack_levels</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classdballe_1_1Msg.html">Msg</a> &amp;&#160;</td>
          <td class="paramname"><em>dst</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Copy to dest all the variable in this message that match <em>filter</em> TODO: to be implemented. </p>
<p>Copy a <a class="el" href="classdballe_1_1Msg.html" title="Storage for related physical data.">Msg</a>, removing the sounding significance from the level descriptions and packing together the data at the same pressure level.</p>
<p>This is used to postprocess data after decoding, where the l2 field of the level description is temporarily used to store the vertical sounding significance, to simplify decoding. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="msg_8h_source.html">msg.h</a></li>
</ul>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Thu May 24 2012 21:04:10 for libdballe by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>