11 #ifndef AWTI_IMP_LOCAL_HXX
12 #define AWTI_IMP_LOCAL_HXX
14 #ifndef _GLIBCXX_STRING
21 #ifndef AWTI_IMPORT_HXX
24 #ifndef ARB_STRARRAY_H
34 #define awti_assert(cond) arb_assert(cond)
37 #define AWAR_IMPORT_FILEBASE AWAR_IMPORT_TMP_PREFIX "pattern"
38 #define AWAR_IMPORT_FILENAME AWAR_IMPORT_FILEBASE "/file_name"
40 #define AWAR_IMPORT_FORMATBASE AWAR_IMPORT_TMP_PREFIX "form"
41 #define AWAR_IMPORT_FORMATNAME AWAR_IMPORT_FORMATBASE "/file_name"
42 #define AWAR_IMPORT_FORMATFILTER AWAR_IMPORT_FORMATBASE "/filter"
43 #define AWAR_IMPORT_FORMATDIR AWAR_IMPORT_FORMATBASE "/directory"
45 #define AWAR_IMPORT_FORMAT_DESC AWAR_IMPORT_TMP_PREFIX "description"
46 #define AWAR_IMPORT_ALI AWAR_IMPORT_TMP_PREFIX "alignment"
47 #define AWAR_IMPORT_ALI_TYPE AWAR_IMPORT_TMP_PREFIX "alignment_type"
48 #define AWAR_IMPORT_ALI_PROTECTION AWAR_IMPORT_TMP_PREFIX "alignment_protection"
50 #define AWAR_IMPORT_FTS AWAR_IMPORT_TMP_PREFIX "fts"
52 #define AWTI_IMPORT_CHECK_BUFFER_SIZE 10000
78 return rest ? rest->
reverse(
this) :
this;
85 #define IFS_VARIABLES 26 // 'a'-'z'
94 void set(
char c,
const char *
s) {
147 RootCallback after_import_cb;
150 int current_file_idx;
154 GBDATA *gb_main_4_nameserver;
157 void unload_format() {
158 delete ifo; ifo =
NULp;
159 delete ifo2; ifo2 =
NULp;
166 gb_import_main(
NULp),
167 after_import_cb(after_import_cb_),
170 gb_main_4_nameserver(
NULp)
172 gb_import_main =
GB_open(
"noname.arb",
"wc");
177 if (gb_import_main)
GB_close(gb_import_main);
187 char *
read_line(
int tab,
char *sequencestart,
char *sequenceend);
196 return gb_import_main;
199 GBDATA *gbm = gb_import_main;
200 gb_import_main =
NULp;
209 #error awti_imp_local.hxx included twice
210 #endif // AWTI_IMP_LOCAL_HXX
void import_and_continueOnSuccess(AW_window *aww)
GBDATA * GB_open(const char *path, const char *opent)
static GB_ERROR tab(GBL_command_arguments *args, bool pretab)
import_match * reverse(import_match *to_append)
return string(buffer, length)
char * read_line(int tab, char *sequencestart, char *sequenceend)
GB_ERROR import_data(AW_root *awr, const char *mask, bool keep_found_IDs)
ArbImporter(const RootCallback &after_import_cb_)
void detectAvailableFields(StrArray &fields, FieldsToScan whatToScan)
void set_db_4_nameserver(GBDATA *gb_main)
GB_ERROR read_format(const char *file)
const import_format * peek_format() const
const T * content() const
convert SmartPtr to plain old pointer (also works if isNull())
#define awti_assert(cond)
void set(char c, const char *s)
void detect_format(AW_root *root)
GB_ERROR read_data(char *ali_name, int security_write, FieldTransfer::RuleSetPtr ruleset)
void GB_close(GBDATA *gbd)
GB_write_int const char s