qxLib
category.inl
Go to the documentation of this file.
1 /**
2 
3  @file category.inl
4  @author Khrapov
5  @date 2.01.2023
6  @copyright © Nick Khrapov, 2023. All right reserved.
7 
8 **/
9 
10 namespace qx
11 {
12 
13 constexpr category::category(string_view svName, const color& categoryColor) noexcept
14  : m_Color(categoryColor)
15  , m_svName(svName)
16 {
17 }
18 
19 constexpr category category::set_verbosity(verbosity eVerbosity) const noexcept
20 {
21  category category_ = *this;
22  category_.m_Verbosity = eVerbosity;
23  return category_;
24 }
25 
26 constexpr string_view category::get_name() const noexcept
27 {
28  return m_svName;
29 }
30 
31 constexpr const color& category::get_color() const noexcept
32 {
33  return m_Color;
34 }
35 
36 constexpr verbosity category::get_verbosity() const noexcept
37 {
38  return m_Verbosity;
39 }
40 
41 } // namespace qx
42 
43 namespace qx::details
44 {
45 
46 template<size_t nHash>
48 
49 } // namespace qx::details
A category is a class that identifies a particular piece of code. This code can be located in differe...
Definition: category.h:59
constexpr string_view get_name() const noexcept
Get category name.
Definition: category.inl:26
constexpr category set_verbosity(verbosity eVerbosity) const noexcept
Create new category from this one with custom verbosity.
Definition: category.inl:19
constexpr const color & get_color() const noexcept
Get category color.
Definition: category.inl:31
constexpr verbosity get_verbosity() const noexcept
Get category verbosity.
Definition: category.inl:36
RGBA color.
Definition: color.h:193