1 #ifndef DBALLE_FORTRAN_MSGAPI_H 2 #define DBALLE_FORTRAN_MSGAPI_H 5 #include <dballe/fwd.h> 6 #include <dballe/msg/fwd.h> 22 STATE_VOGLIOQUESTO = 4,
51 bool readNextMessage();
58 std::vector<std::shared_ptr<dballe::Message>>* msgs =
nullptr;
69 MsgAPI(
const char* fname,
const char* mode,
const char* type);
79 void set_exporter(
const char* template_name);
81 void reinit_db(
const char* repinfofile=0)
override;
82 int query_stations()
override;
83 int query_data()
override;
84 void insert_data()
override;
85 void remove_data()
override;
86 void remove_all()
override;
87 void messages_open_input(
const char* filename,
const char* mode, Encoding format,
bool)
override;
88 void messages_open_output(
const char* filename,
const char* mode, Encoding format)
override;
89 bool messages_read_next()
override;
90 void messages_write_next(
const char*)
override;
Importer * importer
Importer (NULL if we export)
Definition: msgapi.h:32
Message importer interface.
Definition: importer.h:61
Common implementation of the set* and enq* machinery using input and output records.
Definition: commonapi.h:152
unsigned int state
State flag to track what actions have been performed in order to decide what to do next...
Definition: msgapi.h:30
Message exporter interface.
Definition: exporter.h:65
int cached_lcat
Local category set for the message that we are writing.
Definition: msgapi.h:43
int cached_subcat
Subcategory set for the message that we are writing.
Definition: msgapi.h:41
Storage for related physical data.
Definition: msg.h:130
std::string exporter_template
Name of the last exporter template set.
Definition: msgapi.h:34
int cached_cat
Category set for the message that we are writing.
Definition: msgapi.h:39
File object for doing I/O on binary message streams.
Definition: file.h:17