ARB
|
Go to the source code of this file.
Classes | |
struct | TypeSwitch |
Functions | |
static void | show_command_line_usage () |
static void | valid_name_or_die (const char *file_name) |
static bool | file_exists (const char *file_name) |
static void | change_file_suffix (const char *old_file, char *file_name, int type) |
static void | ask_for_conversion_params (FormattedFile &in, FormattedFile &out) |
static int | strcasecmp_start (const char *s1, const char *s2) |
static bool | is_abbrev_switch (const char *arg, const char *switchtext) |
static Format | parse_type (const char *arg) |
static Format | parse_intype (const char *arg) |
static Format | parse_outtype (const char *arg) |
static bool | is_help_req (const char *arg) |
static bool | command_line_conversion (int argc, const char *const *argv, FormattedFile &in, FormattedFile &out) |
static void | do_conversion (const FormattedFile &in, const FormattedFile &out) |
int | ARB_main (int argc, char *argv[]) |
Variables | |
static TypeSwitch | convertible_type [] |
|
static |
Definition at line 31 of file main.cxx.
References fputs().
Referenced by ask_for_conversion_params(), and command_line_conversion().
|
static |
Definition at line 47 of file main.cxx.
References str0len(), and throw_errorf().
Referenced by ask_for_conversion_params(), and do_conversion().
|
static |
Definition at line 52 of file main.cxx.
Referenced by ask_for_conversion_params(), and do_conversion().
|
static |
Definition at line 96 of file main.cxx.
References change_file_suffix(), EMBL, file_exists(), fputs(), GCG, GENBANK, Getstr(), FormattedFile::init(), LINESIZE, MACKE, FormattedFile::name(), NEXUS, PHYLIP, PRINTABLE, show_command_line_usage(), str0len(), SWISSPROT, throw_error(), throw_errorf(), UNKNOWN, and valid_name_or_die().
Referenced by ARB_main().
Definition at line 197 of file main.cxx.
References ARRAY_ELEMS, TypeSwitch::format, is_abbrev_switch(), TypeSwitch::switchtext, type, and UNKNOWN.
Referenced by parse_intype(), and parse_outtype().
Definition at line 207 of file main.cxx.
References is_input_format(), parse_type(), throw_errorf(), type, and UNKNOWN.
Referenced by command_line_conversion().
Definition at line 214 of file main.cxx.
References parse_type(), throw_errorf(), type, and UNKNOWN.
Referenced by command_line_conversion().
|
static |
Definition at line 220 of file main.cxx.
Referenced by command_line_conversion().
|
static |
Definition at line 223 of file main.cxx.
References FormattedFile::init(), is_help_req(), parse_intype(), parse_outtype(), show_command_line_usage(), and throw_errorf().
Referenced by ARB_main().
|
static |
Definition at line 239 of file main.cxx.
References convert(), file_exists(), FormattedFile::name(), valid_name_or_die(), and warningf().
Referenced by ARB_main().
Definition at line 252 of file main.cxx.
References ask_for_conversion_params(), command_line_conversion(), do_conversion(), error(), EXIT_FAILURE, EXIT_SUCCESS, GBK_singlequote(), GBK_system(), GBS_global_string(), Convaln_exception::get_code(), and Convaln_exception::get_msg().