This file is indexed.

/usr/include/dballe/core/match-wreport.h is in libdballe-dev 7.7-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
#ifndef DBALLE_CORE_MATCH_WREPORT_H
#define DBALLE_CORE_MATCH_WREPORT_H

/** @file
 * @ingroup core
 * Implement a storage object for a group of related observation data
 */

#include <dballe/core/matcher.h>

namespace wreport {
struct Var;
struct Subset;
struct Bulletin;
}

namespace dballe {

struct MatchedSubset : public Matched
{
    const wreport::Subset& r;

    MatchedSubset(const wreport::Subset& r);
    ~MatchedSubset();

    /**
     * Return YES if the subset contains at least one var with the given B33195
     * attribute; else return NA.
     */
    matcher::Result match_var_id(int val) const override;
    matcher::Result match_station_id(int val) const override;
    matcher::Result match_station_wmo(int block, int station=-1) const override;
    matcher::Result match_datetime(const DatetimeRange& range) const override;
    matcher::Result match_coords(const LatRange& latrange, const LonRange& lonrange) const override;
    matcher::Result match_rep_memo(const char* memo) const override;

protected:
    Datetime date;
    int lat, lon;
    const wreport::Var* var_ana_id;
    const wreport::Var* var_block;
    const wreport::Var* var_station;
    const wreport::Var* var_rep_memo;
};

/**
 * Match all subsets in turn, returning true if at least one subset matches
 */
struct MatchedBulletin : public Matched
{
    const wreport::Bulletin& r;

    MatchedBulletin(const wreport::Bulletin& r);
    ~MatchedBulletin();

    matcher::Result match_var_id(int val) const override;
    matcher::Result match_station_id(int val) const override;
    matcher::Result match_station_wmo(int block, int station=-1) const override;
    matcher::Result match_datetime(const DatetimeRange& range) const override;
    matcher::Result match_coords(const LatRange& latrange, const LonRange& lonrange) const override;
    matcher::Result match_rep_memo(const char* memo) const override;

protected:
    const MatchedSubset** subsets;
};

}
#endif