5 #include <dballe/file.h>
26 InputFile* input_file;
27 OutputFile* output_file;
28 int last_inserted_station_id;
33 wreport::Varcode code;
37 VarID(wreport::Varcode code,
bool station,
size_t id) : code(code), station(station), id(
id) {}
45 DbAPI(
DB& db,
const char* anaflag,
const char* dataflag,
const char* attrflag);
48 virtual int enqi(
const char* param);
50 virtual void scopa(
const char* repinfofile = 0);
virtual bool messages_read_next()
Read the next message and import it in the database.
Common interface for cursors iterating over station or data values.
Definition: db.h:103
Encoding
Supported encodings.
Definition: file.h:20
Store information about the database ID of a variable.
Definition: dbapi.h:31
virtual void scusa()
Remove QC informations for a variable of the current record.
virtual int voglioquesto()
Submit a query to the database.
Common implementation of the set* and enq* machinery using input and output records.
Definition: commonapi.h:14
virtual int quantesono()
Count the number of elements in the anagraphical storage, and start a new anagraphical query...
virtual void prendilo()
Insert a new item in the database.
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition: cmdline.h:17
Cursor iterating over stations.
Definition: db.h:98
virtual const char * dammelo()
Iterate through the query results data.
virtual void messages_open_output(const char *filename, const char *mode, File::Encoding format)
Open a BUFR/CREX/AOF file for writing.
virtual void scopa(const char *repinfofile=0)
Reset the database contents, loading default report informations from a file.
virtual void remove_all()
Remove all data from the database.
std::vector< VarID > last_inserted_varids
Store database variable IDs for all last inserted variables.
Definition: dbapi.h:41
virtual int voglioancora()
Retrieve QC informations from the last variable returned by dammelo().
virtual void messages_open_input(const char *filename, const char *mode, File::Encoding format, bool simplified=true)
Open a BUFR/CREX/AOF file for reading.
virtual void elencamele()
Iterate through the anagraphical data.
virtual void critica()
Insert new QC informations for a variable of the current record.
virtual void messages_write_next(const char *template_name=0)
Export the currently selected data to the output message.
virtual int enqi(const char *param)
Read one integer value from the output record.
virtual void dimenticami()
Remove all selected items from the database.