18 #ifndef LIBCWD_CLASS_CHANNEL_H
19 #define LIBCWD_CLASS_CHANNEL_H
21 #ifndef LIBCWD_CONFIG_H
24 #ifndef LIBCWD_MAX_LABEL_LEN_H
27 #ifndef LIBCWD_CONTROL_FLAG_H
30 #ifndef LIBCWD_PRIVATE_STRUCT_TSD_H
84 #if LIBCWD_THREAD_SAFE
113 explicit channel_ct(
char const* label,
bool add_to_channel_list =
true);
116 void NS_initialize(
char const* label LIBCWD_COMMA_TSD_PARAM,
bool add_to_channel_list);
132 void force_on(OnOffState& state,
char const* label);
133 void restore(OnOffState
const& state);
135 channel_ct const& operator()(
bool cond)
const {
return cond ? *this : off_channel; }
144 #if LIBCWD_THREAD_SAFE
145 bool is_on(LIBCWD_TSD_PARAM)
const;
This object represents a debug channel, it has a fixed label. A debug channel can be viewed upon as a...
Definition: class_channel.h:82
channel_ct(char const *label, bool add_to_channel_list=true)
Construct a new debug channel with name label.
Definition: class_channel.inl:35
bool is_on() const
Returns ‘true’ if the channel is active.
Definition: class_channel.inl:56
void off()
Turn this channel off.
Definition: debug.cc:1780
void on()
Cancel one call to ‘off()’.
Definition: debug.cc:1795
char const * get_label() const
Pointer to the label of the debug channel.
Definition: class_channel.inl:71
namespace for libcwd.
Definition: debug.cc:87
unsigned short const max_label_len_c
The maximum number of characters that are allowed in a debug channel label.
Definition: max_label_len.h:24