libcwdversion 2.0.0
The C++ Debugging Support Library
Loading...
Searching...
No Matches
AlwaysChannel.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2001-2005, 2018, 2020, 2023, 2026 Carlo Wood
2// SPDX-License-Identifier: MIT
3
4#pragma once
5
9
10#ifndef LIBCWD_CLASS_ALWAYS_CHANNEL_H
11#define LIBCWD_CLASS_ALWAYS_CHANNEL_H
12
13#include "control_flag.h"
14#include "max_label_len.h"
15#include "libcwd/config.h"
16
17namespace libcwd {
18
19//===================================================================================================
20// class AlwaysChannel
21//
22// A debug channel with a special characteristic: It is always turned
23// and cannot be turned off.
24//
25
26class AlwaysChannel
27{
28 public:
29 static constexpr char label[max_label_len + 1] = {'>', '>', '>', '>', '>', '>', '>', '>', '>',
30 '>', '>', '>', '>', '>', '>', '>', 0};
31};
32
33} // namespace libcwd
34
35#endif // LIBCWD_CLASS_ALWAYS_CHANNEL_H
namespace for libcwd.
constexpr unsigned short max_label_len
The maximum number of characters that are allowed in a debug channel label.
Definition max_label_len.h:16