source: tags/old_import_filter/PHYLO/PH_root.cxx

Last change on this file was 8901, checked in by westram, 12 years ago
  • PH_root
    • made members private
    • added ctor/dtor
    • made a singleton
  • fixed other cppcheck warnings
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 810 bytes
Line 
1// ================================================================= //
2//                                                                   //
3//   File      : PH_root.cxx                                         //
4//   Institute of Microbiology (Technical University Munich)         //
5//   http://www.arb-home.de/                                         //
6//                                                                   //
7// ================================================================= //
8
9#include "phylo.hxx"
10#include <arbdbt.h>
11
12PH_root *PH_root::SINGLETON = NULL;
13
14GB_ERROR PH_root::open(const char *db_server) {
15    GB_ERROR error = 0;
16
17    gb_main             = GB_open(db_server, "rwt");
18    if (!gb_main) error = GB_await_error();
19    else GLOBAL_gb_main = gb_main;
20
21    return error;
22}
Note: See TracBrowser for help on using the repository browser.