libdballe  7.29
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
dballe::fortran::DbAPI Class Reference
Inheritance diagram for dballe::fortran::DbAPI:
dballe::fortran::CommonAPIImplementation dballe::fortran::API

Classes

struct  VarID
 Store information about the database ID of a variable. More...
 

Public Member Functions

 DbAPI (DB &db, const char *anaflag, const char *dataflag, const char *attrflag)
 
int enqi (const char *param) override
 
void scopa (const char *repinfofile=0) override
 
void remove_all () override
 
int quantesono () override
 
void elencamele () override
 
int voglioquesto () override
 
const char * dammelo () override
 
void prendilo () override
 
void dimenticami () override
 
int voglioancora () override
 
void critica () override
 
void scusa () override
 
void fatto () override
 
void messages_open_input (const char *filename, const char *mode, File::Encoding format, bool simplified=true) override
 
void messages_open_output (const char *filename, const char *mode, File::Encoding format) override
 
bool messages_read_next () override
 
void messages_write_next (const char *template_name=0) override
 
- Public Member Functions inherited from dballe::fortran::CommonAPIImplementation
void test_input_to_output () override
 
signed char enqb (const char *param) override
 
float enqr (const char *param) override
 
double enqd (const char *param) override
 
const char * enqc (const char *param) override
 
void seti (const char *param, int value) override
 
void setb (const char *param, signed char value) override
 
void setr (const char *param, float value) override
 
void setd (const char *param, double value) override
 
void setc (const char *param, const char *value) override
 
void setcontextana () override
 
void enqlevel (int &ltype1, int &l1, int &ltype2, int &l2) override
 
void setlevel (int ltype1, int l1, int ltype2, int l2) override
 
void enqtimerange (int &ptype, int &p1, int &p2) override
 
void settimerange (int ptype, int p1, int p2) override
 
void enqdate (int &year, int &month, int &day, int &hour, int &min, int &sec) override
 
void setdate (int year, int month, int day, int hour, int min, int sec) override
 
void setdatemin (int year, int month, int day, int hour, int min, int sec) override
 
void setdatemax (int year, int month, int day, int hour, int min, int sec) override
 
void unset (const char *param) override
 
void unsetall () override
 
void unsetb () override
 
const char * spiegal (int ltype1, int l1, int ltype2, int l2) override
 
const char * spiegat (int ptype, int p1, int p2) override
 
const char * spiegab (const char *varcode, const char *value) override
 
const char * ancora () override
 
AttrState test_get_attr_state () const
 
const core::Recordtest_get_input () const
 
const core::Recordtest_get_output () const
 
const core::Recordtest_get_qcinput () const
 
const core::Recordtest_get_qcoutput () const
 

Protected Member Functions

void shutdown (bool commit)
 
- Protected Member Functions inherited from dballe::fortran::CommonAPIImplementation
void set_permissions (const char *anaflag, const char *dataflag, const char *attrflag)
 Set the permission bits, parsing the flags and doing consistency checks.
 
Recordchoose_input_record (const char *&param)
 Choose the input record to use for param. More...
 
Recordchoose_output_record (const char *&param)
 Choose the output record to use for param. More...
 
void read_qc_list (std::vector< wreport::Varcode > &res_arr) const
 Reads the list of QC values to operate on, for dba_voglioancora and dba_scusa.
 

Protected Attributes

DBdb
 
db::CursorStationana_cur
 
db::CursorValuequery_cur
 
InputFile * input_file
 
OutputFile * output_file
 
dballe::Transactiontransaction = nullptr
 
int last_inserted_station_id
 
std::vector< VarIDlast_inserted_varids
 Store database variable IDs for all last inserted variables.
 
- Protected Attributes inherited from dballe::fortran::CommonAPIImplementation
int perms
 
core::Record input
 
bool station_context = false
 
core::Record output
 
core::Record qcinput
 
core::Record qcoutput
 
int qc_iter
 
int qc_count
 
AttrState attr_state
 
wreport::Varcode attr_varid
 
int attr_reference_id
 
std::string cached_spiega
 

Additional Inherited Members

- Public Types inherited from dballe::fortran::CommonAPIImplementation
enum  AttrState { ATTR_DAMMELO = 1, ATTR_PRENDILO = 2, ATTR_REFERENCE = 3 }
 
- Static Public Attributes inherited from dballe::fortran::API
static const signed char missing_byte
 
static const int missing_int
 
static const float missing_float
 
static const double missing_double
 
- Protected Types inherited from dballe::fortran::CommonAPIImplementation
enum  {
  PERM_ANA_RO = (1 << 0), PERM_ANA_WRITE = (1 << 1), PERM_DATA_RO = (1 << 2), PERM_DATA_ADD = (1 << 3),
  PERM_DATA_WRITE = (1 << 4), PERM_ATTR_RO = (1 << 5), PERM_ATTR_WRITE = (1 << 6)
}
 

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