ARB
Functions
prototypes.h File Reference
#include <attributes.h>
Include dependency graph for prototypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void convert (const FormattedFile &in, const FormattedFile &out)
 
const chargenbank_date (const char *other_date)
 
const chartoday_date (void)
 
const chargcg_date (const char *input)
 
int comment_subkey (const char *line, char *key)
 
void embl_key_word (const char *line, int index, char *key)
 
void embl_out_header (const Embl &embl, const Seq &seq, Writer &write)
 
void embl_out (const Embl &embl, const Seq &seq, Writer &write)
 
int etog (const Embl &embl, GenBank &gbk, const Seq &seq) __ATTR__USERESULT
 
int etom (const Embl &embl, Macke &macke, const Seq &seq) __ATTR__USERESULT
 
int gtoe (const GenBank &gbk, Embl &embl, const Seq &seq) __ATTR__USERESULT
 
int mtoe (const Macke &macke, Embl &embl, const Seq &seq) __ATTR__USERESULT
 
void throw_conversion_not_supported (Format inType, Format ouType) __ATTR__NORETURN
 
void throw_conversion_failure (Format inType, Format ouType) __ATTR__NORETURN
 
void throw_conversion_not_implemented (Format inType, Format ouType) __ATTR__NORETURN
 
void throw_unsupported_input_format (Format inType) __ATTR__NORETURN
 
void throw_incomplete_entry (void) __ATTR__NORETURN
 
void log_processed (int seqCount)
 
void to_gcg (const FormattedFile &in, const char *outf)
 
void genbank_key_word (const char *line, int index, char *key)
 
void genbank_out_header (const GenBank &gbk, const Seq &seq, Writer &write)
 
void genbank_out_base_count (const Seq &seq, Writer &write)
 
void genbank_out (const GenBank &gbk, const Seq &seq, Writer &write)
 
void macke_origin (Seq &seq, char *&seqabbr, Reader &reader)
 
void macke_out_header (Writer &write)
 
void macke_seq_display_out (const Macke &macke, Writer &write, Format inType, bool first_sequence)
 
void macke_seq_info_out (const Macke &macke, Writer &write)
 
int macke_key_word (const char *line, int index, char *key)
 
void macke_seq_data_out (const Seq &seq, const Macke &macke, Writer &write)
 
int ARB_main (int argc, char *argv[])
 
int mtog (const Macke &macke, GenBank &gbk, const Seq &seq) __ATTR__USERESULT
 
int gtom (const GenBank &gbk, Macke &macke) __ATTR__USERESULT
 
void to_paup (const FormattedFile &in, const char *outf)
 
void to_phylip (const FormattedFile &in, const char *outf, bool for_fastdnaml)
 
void to_printable (const FormattedFile &in, const char *outf)
 
bool parse_RDP_comment (RDP_comments &comments, RDP_comment_parser one_comment_entry, const char *key, int index, Reader &reader)
 
void read_alignment (Alignment &ali, const FormattedFile &in)
 
bool scan_token (char *to, const char *from) __ATTR__USERESULT
 
void scan_token_or_die (char *to, const char *from)
 
void scan_token_or_die (char *to, Reader &reader, int offset)
 
void throw_error (int error_num, const char *error_message) __ATTR__NORETURN
 
charstrf (const char *format,...) __ATTR__FORMAT(1)
 
void throw_errorf (int error_num, const char *error_messagef,...) __ATTR__FORMAT(2) __ATTR__NORETURN
 
void warning (int warning_num, const char *warning_message)
 
void warningf (int warning_num, const char *warning_messagef,...) __ATTR__FORMAT(2)
 
int Skip_white_space (const char *line, int index)
 
void Getstr (char *line, int linenum)
 
void terminate_with (char *&str, char ch)
 
void skip_eolnl_and_append (char *&string1, const char *string2)
 
void skip_eolnl_and_append_spaced (char *&string1, const char *string2)
 
void Append (char *&string1, const char *string2)
 
void Append (char *&string1, char ch)
 
void upcase (char *str)
 
int fputs_len (const char *str, int len, Writer &write)
 
int find_pattern (const char *text, const char *pattern)
 
int skip_pattern (const char *text, const char *pattern)
 
int find_subspecies (const char *str, char expect_behind)
 
int skip_subspecies (const char *str, char expect_behind)
 
int find_strain (const char *str, char expect_behind)
 
int skip_strain (const char *str, char expect_behind)
 
const charstristr (const char *str, const char *substring)
 
int ___lookup_keyword (const char *keyword, const char *const *lookup_table, int lookup_table_size)
 
int parse_key_word (const char *line, char *key, const char *separator)
 

Function Documentation

void convert ( const FormattedFile in,
const FormattedFile out 
)
const char* genbank_date ( const char other_date)
const char* today_date ( void  )

Definition at line 214 of file date.cxx.

References line, and SIZE.

Referenced by etog(), gcg_seq_out(), FINAL_TYPE< SEQTYPE >::get_date(), macke_out_header(), mtog(), and paup_print_headerstart().

const char* gcg_date ( const char input)

Definition at line 232 of file date.cxx.

References ca_assert, IF_ASSERTION_USED, ismonth(), and SIZE.

Referenced by gcg_seq_out().

int comment_subkey ( const char line,
char key 
)

Definition at line 83 of file embl.cxx.

References parse_key_word().

Referenced by embl_comments(), and genbank_comments().

void embl_key_word ( const char line,
int  index,
char key 
)
void embl_out_header ( const Embl &  embl,
const Seq seq,
Writer write 
)
void embl_out ( const Embl &  embl,
const Seq seq,
Writer write 
)

Definition at line 360 of file embl.cxx.

References embl_out_header(), and embl_out_origin().

Referenced by write_to_embl().

int etog ( const Embl &  embl,
GenBank &  gbk,
const Seq seq 
)
int etom ( const Embl &  embl,
Macke &  macke,
const Seq seq 
)

Definition at line 543 of file embl.cxx.

References etog(), and gtom().

Referenced by ConvertibleData::to_macke().

int gtoe ( const GenBank &  gbk,
Embl &  embl,
const Seq seq 
)
int mtoe ( const Macke &  macke,
Embl &  embl,
const Seq seq 
)

Definition at line 772 of file embl.cxx.

References gtoe(), mtog(), and partial_mtoe().

Referenced by ConvertibleData::to_embl().

void throw_conversion_not_supported ( Format  inType,
Format  ouType 
)

Definition at line 27 of file fconv.cxx.

References format2name(), and throw_errorf().

Referenced by convert(), to_gcg(), to_paup(), to_phylip(), and to_printable().

void throw_conversion_failure ( Format  inType,
Format  ouType 
)
void throw_conversion_not_implemented ( Format  inType,
Format  ouType 
)
void throw_unsupported_input_format ( Format  inType)

Definition at line 39 of file fconv.cxx.

References format2name(), and throw_errorf().

Referenced by FormatReader::create().

void throw_incomplete_entry ( void  )

Definition at line 43 of file fconv.cxx.

References throw_error().

Referenced by Parser::parse_entry().

void log_processed ( int  seqCount)

Definition at line 50 of file fconv.cxx.

Referenced by FileWriter::~FileWriter().

void to_gcg ( const FormattedFile in,
const char outf 
)
void genbank_key_word ( const char line,
int  index,
char key 
)
void genbank_out_header ( const GenBank &  gbk,
const Seq seq,
Writer write 
)
void genbank_out_base_count ( const Seq seq,
Writer write 
)
void genbank_out ( const GenBank &  gbk,
const Seq seq,
Writer write 
)
void macke_origin ( Seq seq,
char *&  seqabbr,
Reader reader 
)

Definition at line 72 of file macke.cxx.

References ca_assert, and macke_read_seq().

void macke_out_header ( Writer write)

Definition at line 78 of file macke.cxx.

References Writer::out(), Writer::outf(), and today_date().

Referenced by to_macke().

void macke_seq_display_out ( const Macke &  macke,
Writer write,
Format  inType,
bool  first_sequence 
)

Definition at line 85 of file macke.cxx.

References Writer::out(), Writer::outf(), and SWISSPROT.

Referenced by write_to_macke().

void macke_seq_info_out ( const Macke &  macke,
Writer write 
)
int macke_key_word ( const char line,
int  index,
char key 
)

Definition at line 189 of file macke.cxx.

References parse_key_word().

Referenced by macke_is_genbank_entry_comment(), and mtog_decode_ref_and_remarks().

void macke_seq_data_out ( const Seq seq,
const Macke &  macke,
Writer write 
)

Definition at line 196 of file macke.cxx.

References Seq::get_len(), Seq::get_seq(), MACKELIMIT, Writer::out(), Writer::outf(), and warningf().

Referenced by write_to_macke().

int ARB_main ( int  argc,
char argv[] 
)

Definition at line 1545 of file mkptypes.cxx.

int mtog ( const Macke &  macke,
GenBank &  gbk,
const Seq seq 
)
int gtom ( const GenBank &  gbk,
Macke &  macke 
)
void to_paup ( const FormattedFile in,
const char outf 
)
void to_phylip ( const FormattedFile in,
const char outf,
bool  for_fastdnaml 
)
void to_printable ( const FormattedFile in,
const char outf 
)
bool parse_RDP_comment ( RDP_comments comments,
RDP_comment_parser  one_comment_entry,
const char key,
int  index,
Reader reader 
)
void read_alignment ( Alignment ali,
const FormattedFile in 
)

Definition at line 46 of file seq.cxx.

References Alignment::add(), FormatReader::create(), and seq.

Referenced by to_paup(), to_phylip(), and to_printable().

bool scan_token ( char to,
const char from 
)

Definition at line 10 of file util.cxx.

Referenced by gtoe_journal(), and scan_token_or_die().

void scan_token_or_die ( char to,
const char from 
)
void scan_token_or_die ( char to,
Reader reader,
int  offset 
)

Definition at line 19 of file util.cxx.

References Reader::line(), offset, and scan_token_or_die().

void throw_error ( int  error_num,
const char error_message 
)
char* strf ( const char format,
  ... 
)
void throw_errorf ( int  error_num,
const char error_messagef,
  ... 
)
void warning ( int  warning_num,
const char warning_message 
)
void warningf ( int  warning_num,
const char warning_messagef,
  ... 
)
int Skip_white_space ( const char line,
int  index 
)
void Getstr ( char line,
int  linenum 
)

Definition at line 92 of file util.cxx.

Referenced by ask_for_conversion_params().

void terminate_with ( char *&  str,
char  ch 
)
void skip_eolnl_and_append ( char *&  string1,
const char string2 
)

Definition at line 127 of file util.cxx.

References append_known_len(), and str0len().

Referenced by genbank_verify_accession(), mtog_genbank_def_and_source(), and partial_mtoe().

void skip_eolnl_and_append_spaced ( char *&  string1,
const char string2 
)
void Append ( char *&  string1,
const char string2 
)
void Append ( char *&  string1,
char  ch 
)

Definition at line 145 of file util.cxx.

References append_known_len(), and str0len().

void upcase ( char str)

Definition at line 149 of file util.cxx.

Referenced by gtoe().

int fputs_len ( const char str,
int  len,
Writer write 
)

Definition at line 155 of file util.cxx.

References Writer::out().

int find_pattern ( const char text,
const char pattern 
)
int skip_pattern ( const char text,
const char pattern 
)

Definition at line 242 of file util.cxx.

References FIND_SKIP_OVER, and findPattern().

Referenced by genbank_get_strain(), genbank_get_subspecies(), and partial_mtoe().

int find_subspecies ( const char str,
char  expect_behind 
)

Definition at line 244 of file util.cxx.

References FIND_START, and findSubspecies().

Referenced by partial_mtoe().

int skip_subspecies ( const char str,
char  expect_behind 
)

Definition at line 245 of file util.cxx.

References FIND_SKIP_OVER, and findSubspecies().

Referenced by genbank_get_subspecies().

int find_strain ( const char str,
char  expect_behind 
)

Definition at line 247 of file util.cxx.

References FIND_START, and findStrain().

Referenced by correct_subspecies().

int skip_strain ( const char str,
char  expect_behind 
)

Definition at line 248 of file util.cxx.

References FIND_SKIP_OVER, and findStrain().

Referenced by check_strain_from().

const char* stristr ( const char str,
const char substring 
)

Definition at line 250 of file util.cxx.

References find_pattern(), NULp, and offset.

Referenced by partial_mtoe().

int ___lookup_keyword ( const char keyword,
const char *const *  lookup_table,
int  lookup_table_size 
)

Definition at line 255 of file util.cxx.

References str_equal().

int parse_key_word ( const char line,
char key,
const char separator 
)

Definition at line 265 of file util.cxx.

References occurs_in(), and TOKENSIZE.

Referenced by comment_subkey(), embl_key_word(), genbank_key_word(), macke_abbrev(), and macke_key_word().