source: branches/port5/NALIGNER/ali_arbdb.hxx

Last change on this file was 5734, checked in by westram, 16 years ago
  • added GBT_get_SAI_data
  • GBT_first/next_marked_extended → GBT_first/next_marked_SAI
  • GBT_first/find_SAI_rel_exdata → GBT_first/find_SAI_rel_SAI_data
  • variables renamed: (gb_ex[tended[_data]] → gb_sai[_data])
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 898 bytes
Line 
1
2
3#ifndef _ALI_ARBDB_INC_
4#define _ALI_ARBDB_INC_
5
6#include "ali_other_stuff.hxx"
7#include "ali_sequence.hxx"
8
9/*
10 * Class for accessing the database
11 */
12class ALI_ARBDB {
13private:
14    char *alignment;
15
16public:
17    GBDATA *gb_main;
18
19    ALI_ARBDB(void) {
20        alignment = 0;
21        gb_main = 0;
22    }
23    ~ALI_ARBDB(void);
24
25    int open(char *name, char *use_alignment = 0);
26    void close(void);
27
28    void begin_transaction(void) {
29        GB_begin_transaction(gb_main);
30    }
31    void commit_transaction(void) {
32        GB_commit_transaction(gb_main);
33    }
34
35    char *get_sequence_string(char *name, int and_mark = 0);
36    ALI_SEQUENCE *get_sequence(char *name, int and_mark = 0);
37    char *get_SAI(char *name);
38    int put_sequence_string(char *name, char *sequence);
39    int put_sequence(char *name, ALI_SEQUENCE *sequence);
40    int put_SAI(const char *name, char *sequence);
41};
42
43
44#endif
45
Note: See TracBrowser for help on using the repository browser.