libdballe  6.8
Data Structures | Public Member Functions | Static Public Member Functions | Protected Attributes
dballe::msg::Importer Class Referenceabstract

Message importer. More...

#include <codec.h>

Inheritance diagram for dballe::msg::Importer:
dballe::msg::AOFImporter dballe::msg::WRImporter dballe::msg::BufrImporter dballe::msg::CrexImporter

Data Structures

struct  Options
 

Public Member Functions

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

Static Public Member Functions

static std::auto_ptr< Importercreate (Encoding type, const Options &opts=Options())
 Instantiate the right importer for the given type.
 

Protected Attributes

Options opts
 

Detailed Description

Message importer.

This class is designed like a configurable virtual functor.

Importers of various kinds can provide their implementations.

Member Function Documentation

virtual void dballe::msg::Importer::from_rawmsg ( const Rawmsg msg,
Msgs msgs 
) const
pure virtual

Decode a message from its raw encoded representation.

Parameters
rmsgEncoded message
Return values
msgsThe resulting ::dba_msg

Implemented in dballe::msg::AOFImporter, dballe::msg::CrexImporter, and dballe::msg::BufrImporter.


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