ARB
gui_aliview.hxx
Go to the documentation of this file.
1 // ================================================================ //
2 // //
3 // File : gui_aliview.hxx //
4 // Purpose : //
5 // //
6 // Coded by Ralf Westram (coder@reallysoft.de) in November 2009 //
7 // Institute of Microbiology (Technical University Munich) //
8 // http://www.arb-home.de/ //
9 // //
10 // ================================================================ //
11 
12 #ifndef GUI_ALIVIEW_HXX
13 #define GUI_ALIVIEW_HXX
14 
15 #ifndef ARBDB_BASE_H
16 #include <arbdb_base.h>
17 #endif
18 #ifndef ARBTOOLS_H
19 #include <arbtools.h>
20 #endif
21 
22 struct adfiltercbstruct;
23 class ColumnStat;
24 class AW_root;
25 class AW_awar;
26 class AP_filter;
27 class AP_weights;
28 class AliView;
29 
30 class WeightedFilter : virtual Noncopyable {
31  adfiltercbstruct *adfilter;
32  ColumnStat *column_stat;
33 
34 public:
35  WeightedFilter(GBDATA *gb_main, AW_root *aw_root, const char *awar_filter_name, const char *awar_columnStat_name, AW_awar *awar_default_alignment);
37 
38  GBDATA *get_gb_main() const;
39  AW_root *get_aw_root() const;
40 
41  adfiltercbstruct *get_adfiltercbstruct() { return adfilter; }
42  ColumnStat *get_column_stat() { return column_stat; }
43 
44  // factory functions
45  AP_filter *create_filter() const;
46  AP_weights *create_weights(const AP_filter *filter, GB_ERROR& error) const;
47  AliView *create_aliview(const char *aliname, GB_ERROR& error) const;
48 };
49 
50 
51 #else
52 #error gui_aliview.hxx included twice
53 #endif // GUI_ALIVIEW_HXX
const char * GB_ERROR
Definition: arb_core.h:25
ColumnStat * get_column_stat()
Definition: gui_aliview.hxx:42
adfiltercbstruct * get_adfiltercbstruct()
Definition: gui_aliview.hxx:41
AW_root * get_aw_root() const
Definition: GUI_aliview.cxx:91
AP_filter * create_filter() const
Definition: GUI_aliview.cxx:34
static void error(const char *msg)
Definition: mkptypes.cxx:96
GBDATA * get_gb_main() const
Definition: GUI_aliview.cxx:87
WeightedFilter(GBDATA *gb_main, AW_root *aw_root, const char *awar_filter_name, const char *awar_columnStat_name, AW_awar *awar_default_alignment)
Definition: GUI_aliview.cxx:21
AliView * create_aliview(const char *aliname, GB_ERROR &error) const
Definition: GUI_aliview.cxx:66
AP_weights * create_weights(const AP_filter *filter, GB_ERROR &error) const
Definition: GUI_aliview.cxx:38
GBDATA * gb_main
Definition: adname.cxx:32