00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00018 #ifndef LIBCWD_CLASS_CHANNEL_SET_H
00019 #define LIBCWD_CLASS_CHANNEL_SET_H
00020
00021 #ifndef LIBCWD_CONFIG_H
00022 #include <libcwd/config.h>
00023 #endif
00024 #ifndef LIBCWD_CONTROL_FLAG_H
00025 #include <libcwd/control_flag.h>
00026 #endif
00027 #ifndef LIBCWD_PRIVATE_STRUCT_TSD_H
00028 #include <libcwd/private_struct_TSD.h>
00029 #endif
00030
00031 namespace libcwd {
00032
00033 class debug_ct;
00034 struct debug_tsd_st;
00035 class channel_ct;
00036 class fatal_channel_ct;
00037
00038
00039
00040
00041
00042
00043
00044 struct channel_set_data_st {
00045 public:
00046 char const* label;
00047
00048
00049 control_flag_t mask;
00050
00051
00052 bool on;
00053
00054
00055 debug_tsd_st* do_tsd_ptr;
00056
00057
00058 #if CWDEBUG_DEBUG
00059 channel_set_data_st(void) : do_tsd_ptr(NULL) { }
00060 #endif
00061 };
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078 class channel_ct;
00079 class fatal_channel_ct;
00080 class continued_channel_ct;
00081 class always_channel_ct;
00082 struct channel_set_st;
00083 struct continued_channel_set_st;
00084
00085 struct channel_set_bootstrap_st : public channel_set_data_st {
00086
00087 public:
00088 channel_set_bootstrap_st(debug_tsd_st& do_tsd LIBCWD_COMMA_TSD_PARAM) { do_tsd_ptr = &do_tsd; }
00089
00090
00091
00092
00093
00094 channel_set_st& operator|(channel_ct const& dc);
00095 channel_set_st& operator|(always_channel_ct const& adc);
00096 channel_set_st& operator&(fatal_channel_ct const& fdc);
00097 continued_channel_set_st& operator|(continued_channel_ct const& cdc);
00098 channel_set_st& operator|(fatal_channel_ct const&);
00099 channel_set_st& operator&(channel_ct const&);
00100 };
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110 struct channel_set_st : public channel_set_data_st {
00111
00112 public:
00113 channel_set_st& operator|(control_flag_t cf);
00114 channel_set_st& operator|(channel_ct const& dc);
00115 channel_set_st& operator|(fatal_channel_ct const& fdc);
00116 continued_channel_set_st& operator|(continued_cf_nt);
00117 };
00118
00119
00120
00121
00122
00123
00124
00125 struct continued_channel_set_st : public channel_set_data_st {
00126
00127 public:
00128 continued_channel_set_st& operator|(control_flag_t cf);
00129 };
00130
00131 }
00132
00133 #endif // LIBCWD_CLASS_CHANNEL_SET_H
00134