Last change
on this file was
2,
checked in by oldcode, 24 years ago
|
Initial revision
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
887 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 | */ |
---|
12 | class ALI_ARBDB { |
---|
13 | private: |
---|
14 | char *alignment; |
---|
15 | |
---|
16 | public: |
---|
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_extended(char *name); |
---|
38 | int put_sequence_string(char *name, char *sequence, char *info = 0); |
---|
39 | int put_sequence(char *name, ALI_SEQUENCE *sequence, char *info = 0); |
---|
40 | int put_extended(char *name, char *sequence, char *info = 0); |
---|
41 | }; |
---|
42 | |
---|
43 | |
---|
44 | #endif |
---|
45 | |
---|
Note: See
TracBrowser
for help on using the repository browser.