35 for (
int c = 0; c<current; ++c) {
48 const char *servername =
NULp;
56 mp_pd_gl.
locs.clear();
60 if (!error && !mp_pd_gl.
link) error =
"Cannot contact PT server [1]";
62 if (!error &&
aisc_put(mp_pd_gl.
link, PT_LOCS, mp_pd_gl.
locs,
NULp)) error =
"Connection to PT_SERVER lost [3]";
67 char *locs_error =
NULp;
71 LOCS_MP_ALL_SPECIES_STRING, &bs,
72 LOCS_MP_COUNT_ALL_SPECIES, &nr_of_species,
73 LOCS_ERROR, &locs_error,
80 laenge = nr_of_species;
104 char *match_name =
NULp;
105 match_name = strtok(bs.
data, toksep);
116 match_name = strtok(
NULp, toksep);
122 error =
"DB-query found no species";
200 if ((0<index) && (index < current))
211 return (0<index) && (index < current) ? mo_liste[index] :
NULp;
GBDATA * GBT_first_marked_species(GBDATA *gb_main)
long GBS_write_hash(GB_HASH *hs, const char *key, long val)
Bakt_Info * get_bakt_info_by_index(long index)
int aisc_close(aisc_com *link, AISC_Object &object)
const char * GBS_global_string(const char *templat,...)
void GBS_free_hash(GB_HASH *hs)
GB_ERROR GB_push_transaction(GBDATA *gbd)
positiontype fill_marked_bakts()
int aisc_put(aisc_com *link, int o_type, const AISC_Object &object,...)
GB_ERROR get_all_species(int ptserver_id)
int MP_init_local_com_struct(struct mp_gl_struct &mp_pd_gl)
static void error(const char *msg)
long get_index_by_entry(const char *key)
GBDATA * GBT_next_marked_species(GBDATA *gb_species)
unsigned long positiontype
const char * get_entry_by_index(long index) const
GB_ERROR GB_pop_transaction(GBDATA *gbd)
long GBT_count_marked_species(GBDATA *gb_main)
const char * arb_look_and_start_ptserver(int magic_number, int ptserver_id, GB_ERROR &error)
#define AISC_MAGIC_NUMBER
aisc_com * aisc_open(const char *path, AISC_Object &main_obj, long magic, GB_ERROR *error)
void aw_message(const char *msg)
long put_entry(const char *name)
GBDATA * GBT_find_species(GBDATA *gb_main, const char *name)
int aisc_get(aisc_com *link, int o_type, const AISC_Object &object,...)
GB_CSTR GBT_get_name_or_description(GBDATA *gb_item)
long GBS_read_hash(const GB_HASH *hs, const char *key)
GB_HASH * GBS_create_hash(long estimated_elements, GB_CASE case_sens)