libdballe  7.19
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | List of all members
dballe::msg::AOFImporter Class Reference
Inheritance diagram for dballe::msg::AOFImporter:
dballe::msg::Importer

Public Member Functions

 AOFImporter (const Options &opts=Options())
 
bool foreach_decoded (const BinaryMessage &msg, std::function< bool(std::unique_ptr< Message > &&)> dest) const override
 Decode a message from its raw encoded representation, calling dest on each resulting Message. More...
 
Messages from_bulletin (const wreport::Bulletin &msg) const override
 Import a decoded BUFR/CREX message.
 
- Public Member Functions inherited from dballe::msg::Importer
 Importer (const Options &opts)
 
Messages from_binary (const BinaryMessage &msg) const
 Decode a message from its raw encoded representation. More...
 

Static Public Member Functions

static void get_category (const BinaryMessage &msg, int *category, int *subcategory)
 Get category and subcategory of an AOF message. More...
 
static void dump (const BinaryMessage &msg, FILE *out)
 Print the contents of the AOF message. More...
 
- Static Public Member Functions inherited from dballe::msg::Importer
static std::unique_ptr< Importercreate (File::Encoding type, const Options &opts=Options())
 Instantiate the right importer for the given type.
 

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. More...
 
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.
 

Additional Inherited Members

- Protected Attributes inherited from dballe::msg::Importer
Options opts
 

Member Function Documentation

static void dballe::msg::AOFImporter::dump ( const BinaryMessage 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
bool dballe::msg::AOFImporter::foreach_decoded ( const BinaryMessage msg,
std::function< bool(std::unique_ptr< Message > &&)>  dest 
) const
overridevirtual

Decode a message from its raw encoded representation, calling dest on each resulting Message.

Return false from dest to stop decoding.

Parameters
msgEncoded message.
Return values
destThe function that consumes the decoded messages.
Returns
true if it got to the end of decoding, false if dest returned false.

Implements dballe::msg::Importer.

static void dballe::msg::AOFImporter::get_category ( const BinaryMessage 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 
)
staticprotected

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: