// Copyright (c) 2003,2004,2005 Juraj Kolesár /* ABOUT {{{ functions to handle T_PERSON data object. }}} */ /* lt_c_person_data_init(*T_PERSON) {{{ ***************************************/ int lt_c_person_data_init(T_PERSON *person); /* data object T_PERSON must be initialized otherwise is not working correctly (kind of constructor, memory allocator) }}} */ /* lt_c_person_data_get(*T_DB, *T_PERSON) {{{ *********************************/ int lt_c_person_data_get(T_DB *tdb, T_PERSON *person); /* fills T_PERSON with all reacheble data from db according to pk value. Only data with false T_STATUS flag are obtained. }}} */ /* lt_c_person_data_set(*T_DB, *T_PERSON) {{{ *********************************/ int lt_c_person_data_set(T_DB *tdb, T_PERSON *person); /* updates db with data from T_PERSON according to pk value. Only data with false status are updated. -if pk status is false it means that there is no according pk (resp. person data) in db, so all values are inserted as new data !!! NOT fully functional yet. }}} */ /* lt_c_person_data_remove(*T_DB, *T_PERSON) {{{ */ int lt_c_person_data_remove(T_DB *tdb, T_PERSON *person); /* delete person from db according to pk !!! data that are connected only to this pk are not removed (missing db integrity - will be implemented in future) }}} */ /* lt_c_person_data_clear(*T_PERSON) {{{ */ int lt_c_person_data_clear(T_PERSON *person); /* clears all values including pk and all status is set to false }}} */ /* int lt_c_person_qs_init(*T_PERSON, **T_COLS, *T_QS) {{{ ********************/ int lt_c_person_qs_init(T_PERSON *person, T_COLS **cols, T_QS *qs); /* Main mean is to easy and quickly initialize T_COLS and T_QS for further use (f.e. in tt_table_qs) especially for searching by primary information. Data initialized in T_COLS are just pointers to data stored in T_PERSON. So each change of row in tt_table_qs is automaticly stored in T_PERSON }}} */