Databaseconnectionclasses
0.5.3
|
Public Member Functions | |
void | set_fieldnumber (unsigned int f) |
![]() | |
hk_string | name (void) const |
void | set_name (const hk_string &n) |
bool | is_readonly (void) const |
void | set_readonly (bool r) |
enum_columntype | columntype (void) const |
void | set_columntype (enum_columntype f) |
long | size (void) |
void | set_size (long s) |
hk_string | columntype_name (void) |
bool | is_primary (void) |
bool | set_primary (bool i) |
bool | is_notnull (void) |
hk_string | get_delimiter (void) |
bool | set_notnull (bool i) |
bool | has_changed (void) |
hk_string | asstring (bool as_locale=true) |
void | set_asstring (const hk_string &s, bool registerchange=true) |
void | set_asstring (const hk_string &s, bool registerchange, bool is_locale) |
const char * | transformed_asstring (void) |
const char * | transformed_asstring_at (unsigned long position) |
hk_string | changed_data_asstring (bool as_locale=true) |
void | set_asbinary (const struct_raw_data *rd) |
const struct_raw_data * | asbinary (void) |
const struct_raw_data * | asbinary_at (unsigned long a) |
void | set_asbool (bool b) |
bool | asbool (void) |
bool | asbool_at (unsigned long a) |
bool | changed_data_asbool (void) |
void | set_asinteger (long int s, bool registerchange=true) |
long int | asinteger (void) |
long int | asinteger_at (unsigned long) |
long int | changed_data_asinteger (void) |
void | set_asdouble (double s, bool registerchange=true) |
double | asdouble (void) |
double | asdouble_at (unsigned long) |
double | changed_data_asdouble (void) |
unsigned int | fieldnumber (void) |
hk_string | asstring_at (unsigned long a, bool as_locale=true) |
bool | is_nullvalue (void) |
bool | changed_data_is_nullvalue (void) |
bool | is_nullvalue_at (unsigned long a) |
void | set_asnullvalue (bool registerchange=true) |
long int | count (unsigned int from, unsigned int to) |
double | sum (unsigned int from, unsigned int to) |
long int | count () |
double | sum () |
unsigned int | find (unsigned int from, unsigned int to, const hk_string &searchtext, bool wholephrase=false, bool casesensitive=false, bool backwards=false) |
unsigned int | find (const hk_string &searchtext, bool wholephrase=false, bool casesensitive=false, bool backwards=false) |
bool | is_findstring (unsigned int pos, const hk_string &searchtext, bool wholephrase=false, bool casesensitive=false) |
const struct_raw_data * | changed_data (void) |
const struct_raw_data * | transformed_changed_data (void) |
void | reset_changed_data (void) |
void | set_boolvalues (const hk_string &TRUESTRING, const hk_string &FALSESTRING) |
hk_string | bool_truevalue (void) |
hk_string | bool_falsevalue (void) |
void | set_dateformat (const hk_string &df) |
hk_string | dateformat (void) const |
void | set_timeformat (const hk_string &tf) |
hk_string | timeformat (void) const |
void | set_datetimeformat (const hk_string &dtf) |
hk_string | datetimeformat (void) const |
bool | save_to_file (const hk_string &filename) |
bool | load_from_file (const hk_string &filename) |
void | save_columndefinition (ostream &) |
void | load_columndefinition (xmlNodePtr) |
hk_datasource * | datasource (void) |
void | set_allow_autoincwrite (bool r) |
bool | allow_autoincwrite (void) |
bool | in_definitionmode (void) |
hk_string | curval_asstring (void) |
double | curval_asdouble (void) |
long int | curval_asinteger (void) |
bool | curval_asbool (void) |
void | set_definitionmode (bool def) |
hk_string | tableorigin (void) |
![]() | |
void | hkclassname (const hk_string &n) |
hk_string | hkclassname (void) const |
void | hkdebug (const hk_string &d) const |
void | hkdebug (const hk_string &d, const hk_string &e) const |
void | hkdebug (const hk_string &d, int i) const |
void | hkdebug (const hk_string &d, double i) const |
void | wanna_debug (bool d) |
bool | wanna_debug (void) const |
bool | generaldebug (void) |
virtual void | savedata (ostream &s) |
virtual void | loaddata (xmlNodePtr definition) |
Protected Member Functions | |
hk_storagecolumn (hk_storagedatasource *ds, const hk_string &TRUESTRING, const hk_string &FALSESTRING) | |
hk_string | driver_specific_asstring_at (unsigned long a) |
void | driver_specific_asbool (bool b) |
bool | driver_specific_asbool_at (unsigned long a) |
virtual bool | driver_specific_is_nullvalue_at (unsigned long) |
virtual const struct_raw_data * | driver_specific_asbinary_at (unsigned long a) |
![]() | |
hk_column (hk_datasource *ds, const hk_string &TRUESTRING, const hk_string &FALSESTRING) | |
virtual bool | driver_specific_asstring (const hk_string &d) |
virtual const char * | driver_specific_transformed_asstring_at (unsigned long) |
virtual bool | driver_specific_asbinary (const char *b) |
virtual void | data_has_changed (void) |
void | datavisible_add (hk_dsdatavisible *) |
void | datavisible_remove (hk_dsdatavisible *) |
![]() | |
hk_interpreter * | new_interpreter (const hk_string &interpreter, hk_presentation *) |
Protected Attributes | |
char * | p_asstring |
![]() | |
hk_datasource * | p_datasource |
unsigned int | p_fieldnr |
bool | p_readonly |
bool | p_driver_specific_delimit_bool |
unsigned long | p_driver_specific_data_size |
char * | p_driver_specific_data |
char * | p_original_new_data |
unsigned long | p_original_new_data_size |
hk_string | p_sqltextdelimiter |
hk_string | p_sqlnulldelimiter |
hk_string | p_new_data_asstring |
hk_string | p_true |
hk_string | p_false |
hk_string | p_dateformat |
hk_string | p_timeformat |
hk_string | p_datetimeformat |
hk_string | p_driverspecific_dateformat |
hk_string | p_driverspecific_timeformat |
hk_string | p_driverspecific_datetimeformat |
hk_string | p_driverspecific_timestampformat |
hk_string | p_driverspecific_locale |
int | p_driverspecific_digits |
Additional Inherited Members | |
![]() | |
enum | enum_columntype { textcolumn, auto_inccolumn, smallintegercolumn, integercolumn, smallfloatingcolumn, floatingcolumn, datecolumn, datetimecolumn, timecolumn, timestampcolumn, binarycolumn, memocolumn, boolcolumn, othercolumn } |
![]() | |
enum | enum_interaction { noninteractive, interactive } |
enum | enum_measuresystem { cm, inch } |
enum | enum_tagtype { normaltag, mastertag } |
![]() | |
static void | set_generaldebug (bool d) |
static hk_string | hk_translate (const hk_string &t) |
static void | show_warningmessage (const hk_string &m) |
static void | set_warningmessage (messagewindowtype *m) |
static bool | show_yesnodialog (const hk_string &m, bool default_value) |
static void | set_yesnodialog (yesno_dialogtype *d) |
static hk_string | show_stringvaluedialog (const hk_string &t) |
static void | set_stringvaluedialog (stringvalue_dialogtype *t) |
static void | set_translatefunction (translatefunctiontype *t) |
static void | set_filedialog (file_dialogtype *f) |
static hk_string | show_filedialog (const hk_string &f="", enum_operationmode m=file_open) |
static void | set_directorydialog (stringvalue_dialogtype *f) |
static hk_string | show_directorydialog (const hk_string &f="") |
static void | set_showpedantic (bool s) |
static bool | showpedantic (void) |
static void | set_measuresystem (enum_measuresystem) |
static enum_measuresystem | measuresystem (void) |
static xmlNodePtr | get_tagvalue (xmlNodePtr where, const hk_string &tag, hk_string &value, int position=1, enum_tagtype tagtype=normaltag) |
static xmlNodePtr | get_tagvalue (xmlNodePtr where, const hk_string &tag, unsigned long &value, int position=1) |
static xmlNodePtr | get_tagvalue (xmlNodePtr where, const hk_string &tag, unsigned int &value, int position=1) |
static xmlNodePtr | get_tagvalue (xmlNodePtr where, const hk_string &tag, long &value, int position=1) |
static xmlNodePtr | get_tagvalue (xmlNodePtr where, const hk_string &tag, int &value, int position=1) |
static xmlNodePtr | get_tagvalue (xmlNodePtr where, const hk_string &tag, bool &value, int position=1) |
static xmlNodePtr | get_tagvalue (xmlNodePtr &where, const hk_string &tag) |
static void | set_tagvalue (ostream &stream, const hk_string &tag, const hk_string &value) |
static void | set_tagvalue (ostream &stream, const hk_string &tag, unsigned long value) |
static void | set_tagvalue (ostream &stream, const hk_string &tag, unsigned int value) |
static void | set_tagvalue (ostream &stream, const hk_string &tag, long value) |
static void | set_tagvalue (ostream &stream, const hk_string &tag, int value) |
static void | set_tagvalue (ostream &stream, const hk_string &tag, bool value) |
static void | start_mastertag (ostream &stream, const hk_string &tag) |
static void | end_mastertag (ostream &stream, const hk_string &tag) |
static void | set_defaultdatetimeformat (const hk_string &timeformat, const hk_string &dateformat, const hk_string &datetimeformat) |
static hk_string | defaultdateformat (void) |
static hk_string | defaulttimeformat (void) |
static hk_string | defaultdatetimeformat (void) |
static void | save_preferences (void) |
static bool | runtime_only (void) |
static void | set_locale (const hk_string &locale) |
static hk_string | locale (void) |
static void | set_defaultdriver (const hk_string &d) |
static hk_string | defaultdriver (void) |
static void | set_default_automatic_data_update (bool) |
static bool | default_automatic_data_update (void) |
![]() | |
static hk_string | p_defaulttimeformat ="h:m:s" |
static hk_string | p_defaultdateformat ="D.M.Y" |
static hk_string | p_defaultdatetimeformat ="D.M.Y h:m:s" |
static bool | p_runtime_only =false |