libdballe  7.19
conversion.h
1 #ifndef DBALLE_CMDLINE_CONVERSION_H
2 #define DBALLE_CMDLINE_CONVERSION_H
3 
4 #include <dballe/cmdline/processor.h>
5 
6 namespace wreport {
7 struct Bulletin;
8 }
9 
10 namespace dballe {
11 struct File;
12 
13 namespace msg {
14 struct Importer;
15 struct Exporter;
16 }
17 
18 namespace cmdline {
19 
20 struct Converter : public Action
21 {
22  File* file;
23  const char* dest_rep_memo;
24  const char* dest_template;
25  bool bufr2netcdf_categories;
26 
27  msg::Exporter* exporter;
28 
29  Converter() : file(0), dest_rep_memo(0), dest_template(0), bufr2netcdf_categories(false), exporter(0) {}
30  ~Converter();
31 
36  virtual bool operator()(const cmdline::Item& item);
37 
38 protected:
47  void process_bufrex_msg(const BinaryMessage& orig, const wreport::Bulletin& msg);
48 
53  void process_dba_msg(const BinaryMessage& orig, const Messages& msgs);
54 
59  void process_dba_msg_from_bulletin(const BinaryMessage& orig, const wreport::Bulletin& bulletin, const Messages& msgs);
60 };
61 
62 }
63 }
64 
65 #endif
Definition: processor.h:112
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition: cmdline.h:17
Definition: processor.h:95
Binary message.
Definition: file.h:131
Ordered collection of messages.
Definition: message.h:67
Definition: conversion.h:20
Message exporter.
Definition: codec.h:104
File object for doing I/O on binary message streams.
Definition: file.h:17