ARB
ali_arbdb.hxx
Go to the documentation of this file.
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:
25 
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 
36  GB_begin_transaction(gb_main);
37  }
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
GB_ERROR GB_begin_transaction(GBDATA *gbd)
Definition: arbdb.cxx:2516
GB_ERROR GB_commit_transaction(GBDATA *gbd)
Definition: arbdb.cxx:2539
char * get_sequence_string(char *name, int and_mark=0)
Definition: ali_arbdb.cxx:48
int put_SAI(const char *name, char *sequence)
Definition: ali_arbdb.cxx:150
GBDATA * gb_main
Definition: ali_arbdb.hxx:24
ALI_SEQUENCE * get_sequence(char *name, int and_mark=0)
Definition: ali_arbdb.cxx:69
int put_sequence(char *name, ALI_SEQUENCE *sequence)
Definition: ali_arbdb.cxx:131
void begin_transaction()
Definition: ali_arbdb.hxx:35
char * get_SAI(char *name)
Definition: ali_arbdb.cxx:96
#define NULp
Definition: cxxforward.h:97
void commit_transaction()
Definition: ali_arbdb.hxx:38
int open(char *name, char *use_alignment=NULp)
Definition: ali_arbdb.cxx:24
int put_sequence_string(char *name, char *sequence)
Definition: ali_arbdb.cxx:114
void close()
Definition: ali_arbdb.cxx:43