23 #include "commonapi.h"
48 STATE_VOGLIOQUESTO = 4,
68 std::vector<wreport::Var*>
vars;
117 MsgAPI(
const char* fname,
const char* mode,
const char* type);
120 virtual void scopa(
const char* repinfofile = 0);
134 virtual void scusa();
136 virtual void messages_open_input(
const char* filename,
const char* mode, Encoding format,
bool);
std::vector< wreport::Var * > vars
Last variables written with prendilo.
Definition: msgapi.h:68
virtual void messages_open_input(const char *filename, const char *mode, Encoding format, bool)
Open a BUFR/CREX/AOF file for reading.
virtual void messages_open_output(const char *filename, const char *mode, Encoding format)
Open a BUFR/CREX/AOF file for writing.
virtual void critica()
Insert new QC informations for a variable of the current record.
Trange vars_trange
Time range for vars.
Definition: msgapi.h:72
virtual void messages_write_next(const char *)
Export the currently selected data to the output message.
Level vars_level
Level for vars.
Definition: msgapi.h:70
virtual void elencamele()
Iterate through the anagraphical data.
Storage for related physical data.
Definition: msg.h:119
virtual void remove_all()
Remove all data from the database.
Common implementation of the set* and enq* machinery using input and output records.
Definition: commonapi.h:35
unsigned int state
State flag to track what actions have been performed in order to decide what to do next...
Definition: msgapi.h:56
MsgAPI(const char *fname, const char *mode, const char *type)
Message importer.
Definition: codec.h:53
msg::Importer * importer
Importer (NULL if we export)
Definition: msgapi.h:58
msg::Exporter * exporter
Exporter (NULL if we import)
Definition: msgapi.h:60
virtual void dimenticami()
Remove all selected items from the database.
Msg * wmsg
Message subset being written.
Definition: msgapi.h:66
int cached_lcat
Local category set for the message that we are writing.
Definition: msgapi.h:81
int cached_subcat
Subcategory set for the message that we are writing.
Definition: msgapi.h:79
bool readNextMessage()
Read the next message.
Msg * curmsg()
Get a pointer to the current message being read or written.
virtual bool messages_read_next()
Read the next message and import it in the database.
virtual int voglioancora()
Retrieve QC informations from the last variable returned by dammelo().
Definition: conversion.h:31
Dynamic array of dba_msg.
Definition: msgs.h:38
virtual void scusa()
Remove QC informations for a variable of the current record.
virtual void prendilo()
Insert a new item in the database.
Msgs * msgs
Message being written.
Definition: msgapi.h:64
virtual const char * dammelo()
Iterate through the query results data.
Message exporter.
Definition: codec.h:111
virtual int voglioquesto()
Submit a query to the database.
std::string exporter_template
Template selected for exporter (empty if auto detect)
Definition: msgapi.h:62
virtual void scopa(const char *repinfofile=0)
Reset the database contents, loading default report informations from a file.
int cached_cat
Category set for the message that we are writing.
Definition: msgapi.h:77
virtual int quantesono()
Count the number of elements in the anagraphical storage, and start a new anagraphical query...
bool incrementMsgIters()
Increment message iterators.