|
|
| DbAPI (std::shared_ptr< db::Transaction > tr, const char *anaflag, const char *dataflag, const char *attrflag) |
| |
|
| DbAPI (std::shared_ptr< db::Transaction > tr, unsigned perms) |
| |
| void | seti (const char *param, int value) override |
| |
| void | reinit_db (const char *repinfofile=nullptr) override |
| |
| void | remove_all () override |
| |
| int | query_stations () override |
| |
| int | query_data () override |
| |
| void | insert_data () override |
| |
| void | remove_data () override |
| |
| void | commit () override |
| |
| void | messages_open_input (const char *filename, const char *mode, Encoding format, bool simplified=true) override |
| |
| void | messages_open_output (const char *filename, const char *mode, Encoding format) override |
| |
| bool | messages_read_next () override |
| |
| void | messages_write_next (const char *template_name=0) override |
| |
|
| CommonAPIImplementation (const CommonAPIImplementation &)=delete |
| |
|
| CommonAPIImplementation (CommonAPIImplementation &&)=delete |
| |
|
CommonAPIImplementation & | operator= (const CommonAPIImplementation &)=delete |
| |
|
CommonAPIImplementation & | operator= (CommonAPIImplementation &&)=delete |
| |
|
template<typename Operation> |
| auto | reset_operation (Operation *op) -> decltype(op->run()) |
| |
|
void | reset_operation () |
| |
| int | enqi (const char *param) override |
| |
| signed char | enqb (const char *param) override |
| |
| float | enqr (const char *param) override |
| |
| double | enqd (const char *param) override |
| |
| bool | enqc (const char *param, char *res, unsigned res_len) 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 | set_station_context () override |
| |
| void | enqlevel (int <ype1, int &l1, int <ype2, 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 * | describe_level (int ltype1, int l1, int ltype2, int l2) override |
| |
| const char * | describe_timerange (int ptype, int p1, int p2) override |
| |
| const char * | describe_var (const char *varcode, const char *value) override |
| |
| void | next_station () override |
| |
| wreport::Varcode | next_data () override |
| |
| int | query_attributes () override |
| |
| const char * | next_attribute () override |
| |
| void | insert_attributes () override |
| |
| void | remove_attributes () override |
| |
|
const Operation * | test_get_operation () const |
| |
|
const core::Query & | test_get_input_query () const |
| |
|
const core::Data & | test_get_input_data () const |
| |
|
const Values & | test_get_qcinput () const |
| |
| const char * | test_enqc (const char *param, unsigned len) |
| | Wrap enqc in a way that makes it easier to use in unit tests.
|
| |
|
|
static std::unique_ptr< API > | fortran_connect (const DBConnectOptions &options, const char *anaflag, const char *dataflag, const char *attrflag) |
| |
|
static unsigned | compute_permissions (const char *anaflag, const char *dataflag, const char *attrflag) |
| | Set the permission bits, parsing the flags and doing consistency checks.
|
| |
|
static void | to_fortran (int32_t val, char *buf, unsigned buf_len) |
| |
|
static void | to_fortran (const char *str, char *buf, unsigned buf_len) |
| |
|
static void | to_fortran (const std::string &str, char *buf, unsigned buf_len) |
| |