로딩중...
검색중...
일치하는것 없음
by::filters 클래스 참조

Collection of filterable objects for logging control 더 자세히 ...

#include <filters.hpp>

by::filters에 대한 상속 다이어그램 :
by::filterable

Public 멤버 함수

template<typename... Es>
 filters (const Es *... elems)
 Constructs a filters object with multiple filterable elements.
 
ncnt len () const
 
void rel ()
 Clears all contained filterable objects without deleting them.
 
void add (const filterable &new1)
 Adds a filterable object to the collection.
 
void add (const filterable *new1)
 Adds a filterable object to the collection.
 
void del ()
 Deletes all owned filterable objects and clears the collection.
 
nbool filt (errLv::level lv, const std::string &tag) const
 Applies all contained filters to the log entry.
 

상세한 설명

Collection of filterable objects for logging control

Manages multiple filterable objects registered in the logger class. Provides the same API as filterable, and calling an API on filters will invoke that API on all owned filterable objects.

Acts as a composite filter, allowing multiple filtering criteria to be applied to log messages simultaneously.

생성자 & 소멸자 문서화

◆ filters()

template<typename... Es>
by::filters::filters ( const Es *... elems)
inlineexplicit

Constructs a filters object with multiple filterable elements.

This variadic template constructor allows convenient initialization of the filters object by adding multiple filterable instances.

템플릿 파라메터
EsType of the filterable elements (must be convertible to filterable*).
매개변수
elemsPointers to the filterable objects to add.

멤버 함수 문서화

◆ add() [1/2]

void by::filters::add ( const filterable & new1)

Adds a filterable object to the collection.

매개변수
new1The filterable object to add. The filters object does not take ownership.

◆ add() [2/2]

void by::filters::add ( const filterable * new1)

Adds a filterable object to the collection.

매개변수
new1Pointer to the filterable object to add. The filters object does not take ownership.

◆ del()

void by::filters::del ( )

Deletes all owned filterable objects and clears the collection.

주의
This method assumes ownership of the added filterable pointers and deletes them.

◆ filt()

nbool by::filters::filt ( errLv::level lv,
const std::string & tag ) const
virtual

Applies all contained filters to the log entry.

This method returns true if any of the contained filterable objects return true for the given log entry, indicating it should be filtered out.

매개변수
lvThe error level of the log entry.
tagThe tag associated with the log entry.
반환값
true if the log entry should be filtered out (blocked), false otherwise.

by::filterable를 구현.


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: