Classes | Functions | Variables
AW_rename.cxx File Reference
#include "AW_rename.hxx"
#include <aw_awars.hxx>
#include <aw_window.hxx>
#include <aw_root.hxx>
#include <aw_question.hxx>
#include <aw_msg.hxx>
#include <arb_progress.h>
#include <names_client.h>
#include <servercntrl.h>
#include <client.h>
#include <cctype>
#include <ctime>
Include dependency graph for AW_rename.cxx:

Go to the source code of this file.


class  NameServerConnection


static const charget_addid (GBDATA *gb_main)
static GB_ERROR set_addid (GBDATA *gb_main, const char *addid)
const charAW_get_nameserver_addid (GBDATA *gb_main)
GB_ERROR AW_select_nameserver (GBDATA *gb_main, GBDATA *gb_other_main)
GB_ERROR AW_test_nameserver (GBDATA *gb_main)
GB_ERROR AWTC_generate_one_name (GBDATA *gb_main, const char *full_name, const char *acc, const char *addid, char *&new_name)
GB_ERROR AWTC_recreate_name (GBDATA *gb_species)
charAWTC_create_numbered_suffix (GB_HASH *species_name_hash, const char *shortname, GB_ERROR &warning)
GB_ERROR AWTC_pars_names (GBDATA *gb_main, bool *isWarningPtr)
static void awt_rename_cb (AW_window *aww, GBDATA *gb_main)
AW_windowAWTC_create_rename_window (AW_root *root, GBDATA *gb_main)
static charmakeUniqueShortName (const char *prefix, UniqueNameDetector &existing)
charAWTC_makeUniqueShortName (const char *prefix, UniqueNameDetector &existingNames)
charAWTC_generate_random_name (UniqueNameDetector &existingNames)
int AWTC_name_quality (const char *short_name)


static NameServerConnection name_server

Function Documentation

static const char* get_addid ( GBDATA gb_main)
static GB_ERROR set_addid ( GBDATA gb_main,
const char addid 
const char* AW_get_nameserver_addid ( GBDATA gb_main)
GB_ERROR AW_select_nameserver ( GBDATA gb_main,
GBDATA gb_other_main 
GB_ERROR AW_test_nameserver ( GBDATA gb_main)

Definition at line 311 of file AW_rename.cxx.

References NameServerConnection::connect().

Referenced by addid_changed_cb().

GB_ERROR AWTC_generate_one_name ( GBDATA gb_main,
const char full_name,
const char acc,
const char addid,
char *&  new_name 
GB_ERROR AWTC_recreate_name ( GBDATA gb_species)
char* AWTC_create_numbered_suffix ( GB_HASH species_name_hash,
const char shortname,
GB_ERROR warning 

Definition at line 440 of file AW_rename.cxx.

References ARB_alloc(), GBS_read_hash(), and NULp.

Referenced by AWTC_pars_names(), and MERGE_sequences_simple().

GB_ERROR AWTC_pars_names ( GBDATA gb_main,
bool *  isWarningPtr 
static void awt_rename_cb ( AW_window aww,
GBDATA gb_main 
AW_window* AWTC_create_rename_window ( AW_root root,
GBDATA gb_main 
static char* makeUniqueShortName ( const char prefix,
UniqueNameDetector existing 

Definition at line 601 of file AW_rename.cxx.

References aw_assert, UniqueNameDetector::name_known(), NULp, and result.

Referenced by AWTC_makeUniqueShortName().

char* AWTC_makeUniqueShortName ( const char prefix,
UniqueNameDetector existingNames 
char* AWTC_generate_random_name ( UniqueNameDetector existingNames)
int AWTC_name_quality ( const char short_name)

Definition at line 696 of file AW_rename.cxx.

Referenced by InsertDatainGDE().

Variable Documentation

NameServerConnection name_server

Definition at line 300 of file AW_rename.cxx.