SA_Logger
Sapphire's Suite's C++ Logger.
Loading...
Searching...
No Matches
Include
SA
Logger
Log
LogChannelFilter.hpp
Go to the documentation of this file.
1
// Copyright (c) 2023 Sapphire's Suite. All Rights Reserved.
2
3
#pragma once
4
5
#ifndef SAPPHIRE_LOGGER_LOG_CHANNEL_FILTER_GUARD
6
#define SAPPHIRE_LOGGER_LOG_CHANNEL_FILTER_GUARD
7
8
#include <string>
9
#include <unordered_map>
10
21
namespace
SA
22
{
30
class
LogChannelFilter
31
{
33
std::unordered_map<std::wstring, bool> mChannels;
34
35
bool
IsSingleChannelEnabled(
const
std::wstring& _chanName)
const
;
36
37
public
:
46
bool
IsChannelEnabled
(
const
std::wstring& _chanName,
size_t
_offset = 0u)
const
;
47
55
void
SetChannelEnabled
(
const
std::wstring& _chanName,
bool
_bEnabled);
56
};
57
}
58
59
62
#endif
// GUARD
SA::LogChannelFilter
Definition
LogChannelFilter.hpp:31
SA::LogChannelFilter::IsChannelEnabled
bool IsChannelEnabled(const std::wstring &_chanName, size_t _offset=0u) const
SA::LogChannelFilter::SetChannelEnabled
void SetChannelEnabled(const std::wstring &_chanName, bool _bEnabled)
Generated by
1.10.0