source: branches/profile/CONVERTALN/prototypes.h

Last change on this file was 9899, checked in by epruesse, 11 years ago

pass down argc/argv to AW_root::AW_root (for GTK)
GTK will pick its parameters (e.g. —g-fatal-warnings) from argv and
remove them, hence argv must not be const and AW_root() should
be called before command line parsing (if possible).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.5 KB
Line 
1/* This file is generated by aisc_mkpt.
2 * Any changes you make here will be overwritten later!
3 */
4
5#ifndef PROTOTYPES_H
6#define PROTOTYPES_H
7
8/* define ARB attributes: */
9#ifndef ATTRIBUTES_H
10# include <attributes.h>
11#endif
12
13
14/* convert.cxx */
15void convert(const FormattedFile& in, const FormattedFile& out);
16
17/* date.cxx */
18const char *genbank_date(const char *other_date);
19const char *today_date(void);
20const char *gcg_date(const char *input);
21
22/* embl.cxx */
23int comment_subkey(const char *line, char *key);
24void embl_key_word(const char *line, int index, char *key);
25void embl_out_header(const Embl& embl, const Seq& seq, Writer& write);
26void embl_out(const Embl& embl, const Seq& seq, Writer& write);
27int etog(const Embl& embl, GenBank& gbk, const Seq& seq) __ATTR__USERESULT;
28int etom(const Embl& embl, Macke& macke, const Seq& seq) __ATTR__USERESULT;
29int gtoe(const GenBank& gbk, Embl& embl, const Seq& seq) __ATTR__USERESULT;
30int mtoe(const Macke& macke, Embl& embl, const Seq& seq) __ATTR__USERESULT;
31
32/* fconv.cxx */
33void throw_conversion_not_supported(Format inType, Format ouType) __ATTR__NORETURN;
34void throw_conversion_failure(Format inType, Format ouType) __ATTR__NORETURN;
35void throw_conversion_not_implemented(Format inType, Format ouType) __ATTR__NORETURN;
36void throw_unsupported_input_format(Format inType) __ATTR__NORETURN;
37void throw_incomplete_entry(void) __ATTR__NORETURN;
38void log_processed(int seqCount);
39
40/* gcg.cxx */
41void to_gcg(const FormattedFile& in, const char *outf);
42
43/* genbank.cxx */
44void genbank_key_word(const char *line, int index, char *key);
45void genbank_out_header(const GenBank& gbk, const Seq& seq, Writer& write);
46void genbank_out_base_count(const Seq& seq, Writer& write);
47void genbank_out(const GenBank& gbk, const Seq& seq, Writer& write);
48
49/* macke.cxx */
50void macke_origin(Seq& seq, char*& seqabbr, Reader& reader);
51void macke_out_header(Writer& write);
52void macke_seq_display_out(const Macke& macke, Writer& write, Format inType, bool first_sequence);
53void macke_seq_info_out(const Macke& macke, Writer& write);
54int macke_key_word(const char *line, int index, char *key);
55void macke_seq_data_out(const Seq& seq, const Macke& macke, Writer& write);
56
57/* main.cxx */
58int ARB_main(int argc, char *argv[]);
59
60/* mg.cxx */
61int mtog(const Macke& macke, GenBank& gbk, const Seq& seq) __ATTR__USERESULT;
62int gtom(const GenBank& gbk, Macke& macke) __ATTR__USERESULT;
63
64/* paup.cxx */
65void to_paup(const FormattedFile& in, const char *outf);
66
67/* phylip.cxx */
68void to_phylip(const FormattedFile& in, const char *outf, bool for_fastdnaml);
69
70/* printable.cxx */
71void to_printable(const FormattedFile& in, const char *outf);
72
73/* rdp_info.cxx */
74bool parse_RDP_comment(RDP_comments& comments, RDP_comment_parser one_comment_entry, const char *key, int index, Reader& reader);
75
76/* seq.cxx */
77void read_alignment(Alignment& ali, const FormattedFile& in);
78
79/* util.cxx */
80bool scan_token(char *to, const char *from) __ATTR__USERESULT;
81void scan_token_or_die(char *to, const char *from);
82void scan_token_or_die(char *to, Reader& reader, int offset);
83void throw_error(int error_num, const char *error_message) __ATTR__NORETURN;
84char *strf(const char *format, ...) __ATTR__FORMAT(1);
85void throw_errorf(int error_num, const char *error_messagef, ...) __ATTR__FORMAT(2) __ATTR__NORETURN;
86void warning(int warning_num, const char *warning_message);
87void warningf(int warning_num, const char *warning_messagef, ...) __ATTR__FORMAT(2);
88char *Reallocspace(void *block, unsigned int size);
89int Skip_white_space(const char *line, int index);
90void Getstr(char *line, int linenum);
91void terminate_with(char*& str, char ch);
92void skip_eolnl_and_append(char*& string1, const char *string2);
93void skip_eolnl_and_append_spaced(char*& string1, const char *string2);
94void Append(char*& string1, const char *string2);
95void Append(char*& string1, char ch);
96void upcase(char *str);
97int fputs_len(const char *str, int len, Writer& write);
98int find_pattern(const char *text, const char *pattern);
99int skip_pattern(const char *text, const char *pattern);
100int find_subspecies(const char *str, char expect_behind);
101int skip_subspecies(const char *str, char expect_behind);
102int find_strain(const char *str, char expect_behind);
103int skip_strain(const char *str, char expect_behind);
104const char *stristr(const char *str, const char *substring);
105int ___lookup_keyword(const char *keyword, const char *const *lookup_table, int lookup_table_size);
106int parse_key_word(const char *line, char *key, const char *separator);
107
108#else
109#error prototypes.h included twice
110#endif /* PROTOTYPES_H */
Note: See TracBrowser for help on using the repository browser.