Last change
on this file was
16763,
checked in by westram, 7 years ago
|
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.5 KB
|
Line | |
---|
1 | // =============================================================== // |
---|
2 | // // |
---|
3 | // File : ali_arbdb.hxx // |
---|
4 | // Purpose : // |
---|
5 | // // |
---|
6 | // Institute of Microbiology (Technical University Munich) // |
---|
7 | // http://www.arb-home.de/ // |
---|
8 | // // |
---|
9 | // =============================================================== // |
---|
10 | |
---|
11 | #ifndef ALI_ARBDB_HXX |
---|
12 | #define ALI_ARBDB_HXX |
---|
13 | |
---|
14 | #include "ali_other_stuff.hxx" |
---|
15 | |
---|
16 | class ALI_SEQUENCE; |
---|
17 | |
---|
18 | // Class for accessing the database |
---|
19 | class ALI_ARBDB : virtual Noncopyable { |
---|
20 | private: |
---|
21 | char *alignment; |
---|
22 | |
---|
23 | public: |
---|
24 | GBDATA *gb_main; |
---|
25 | |
---|
26 | ALI_ARBDB() { |
---|
27 | alignment = NULp; |
---|
28 | gb_main = NULp; |
---|
29 | } |
---|
30 | ~ALI_ARBDB(); |
---|
31 | |
---|
32 | int open(char *name, char *use_alignment = NULp); |
---|
33 | void close(); |
---|
34 | |
---|
35 | void begin_transaction() { |
---|
36 | GB_begin_transaction(gb_main); |
---|
37 | } |
---|
38 | void commit_transaction() { |
---|
39 | GB_commit_transaction(gb_main); |
---|
40 | } |
---|
41 | |
---|
42 | char *get_sequence_string(char *name, int and_mark = 0); |
---|
43 | ALI_SEQUENCE *get_sequence(char *name, int and_mark = 0); |
---|
44 | char *get_SAI(char *name); |
---|
45 | int put_sequence_string(char *name, char *sequence); |
---|
46 | int put_sequence(char *name, ALI_SEQUENCE *sequence); |
---|
47 | int put_SAI(const char *name, char *sequence); |
---|
48 | }; |
---|
49 | |
---|
50 | #else |
---|
51 | #error ali_arbdb.hxx included twice |
---|
52 | #endif // ALI_ARBDB_HXX |
---|
Note: See
TracBrowser
for help on using the repository browser.