libdballe  5.18
Public Member Functions | Static Public Member Functions | Static Protected Member Functions
dballe::msg::AOFImporter Class Reference
Inheritance diagram for dballe::msg::AOFImporter:
dballe::msg::Importer

Public Member Functions

 AOFImporter (const Options &opts=Options())
virtual void from_rawmsg (const Rawmsg &msg, Msgs &msgs) const
 Decode a message from its raw encoded representation.
virtual void from_bulletin (const wreport::Bulletin &msg, Msgs &msgs) const
 Import a decoded BUFR/CREX message.

Static Public Member Functions

static void get_category (const Rawmsg &msg, int *category, int *subcategory)
 Get category and subcategory of an AOF message.
static void dump (const Rawmsg &msg, FILE *out)
 Print the contents of the AOF message.

Static Protected Member Functions

static void read_synop (const uint32_t *obs, int obs_len, Msg &msg)
static void read_flight (const uint32_t *obs, int obs_len, Msg &msg)
static void read_satob (const uint32_t *obs, int obs_len, Msg &msg)
static void read_dribu (const uint32_t *obs, int obs_len, Msg &msg)
static void read_temp (const uint32_t *obs, int obs_len, Msg &msg)
static void read_pilot (const uint32_t *obs, int obs_len, Msg &msg)
static void read_satem (const uint32_t *obs, int obs_len, Msg &msg)
static void parse_st_block_station (const uint32_t *obs, Msg &msg)
 Parse WMO block and station numbers in the Observation Header.
static void parse_altitude (const uint32_t *obs, Msg &msg)
 Parse station altitude the Observation Header.
static void parse_st_ident (const uint32_t *obs, Msg &msg)
 Parse string ident in the Observation Header.
static int parse_lat_lon_datetime (const uint32_t *obs, Msg &msg)
 Parse latitude, longitude, date and time in the Observation Header.
static void parse_weather_group (const uint32_t *obs, Msg &msg, int hour)
 Parse 27 Weather group in Synop observations.
static void parse_general_cloud_group (const uint32_t *obs, Msg &msg)
 Parse 28 General cloud group in Synop observations.
static void parse_cloud_group (uint32_t val, int *ns, int *c, int *h)
 Parse a bit-packed cloud group in Synop observations.

Member Function Documentation

static void dballe::msg::AOFImporter::dump ( const Rawmsg msg,
FILE *  out 
) [static]

Print the contents of the AOF message.

Parameters:
msgThe encoded message to dump
outThe stream to use to print the message
virtual void dballe::msg::AOFImporter::from_rawmsg ( const Rawmsg msg,
Msgs msgs 
) const [virtual]

Decode a message from its raw encoded representation.

Parameters:
rmsgEncoded message
Return values:
msgsThe resulting ::dba_msg
Returns:
The error indicator for the function. See error::h

Implements dballe::msg::Importer.

static void dballe::msg::AOFImporter::get_category ( const Rawmsg msg,
int *  category,
int *  subcategory 
) [static]

Get category and subcategory of an AOF message.

Parameters:
msgThe message to scan
Return values:
categoryThe AOF category of the message
subcategoryThe AOF subcategory of the message
static int dballe::msg::AOFImporter::parse_lat_lon_datetime ( const uint32_t *  obs,
Msg msg 
) [static, protected]

Parse latitude, longitude, date and time in the Observation Header.

Returns:
the hour, which can be used to take decisions later

The documentation for this class was generated from the following file: