#include <trace_filter.h>
Provides the base class for trace filter implementations.
- Namespace
- xtd::diagnostics
- Library
- xtd.core
Inherits xtd::object.
Inherited by xtd::diagnostics::event_type_filter, and xtd::diagnostics::source_filter.
|
virtual bool | should_trace (const xtd::diagnostics::trace_event_cache &cache, const xtd::ustring &source, xtd::diagnostics::trace_event_type event_type, int32_t id, const xtd::ustring &message, std::any data1, const std::vector< std::any > &data_array)=0 |
| When overridden in a derived class, determines whether the trace listener should trace the event.
|
|
| object ()=default |
| Create a new instance of the ultimate base class object.
|
|
virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object.
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type.
|
|
template<typename object_t > |
std::unique_ptr< object_t > | memberwise_clone () const |
| Gets the type of the current instance.
|
|
virtual xtd::ustring | to_string () const noexcept |
| Returns a std::string that represents the current object.
|
|
|
static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal.
|
|
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance.
|
|
◆ trace_filter()
xtd::diagnostics::trace_filter::trace_filter |
( |
| ) |
|
|
protecteddefault |
◆ should_trace() [1/3]
determines whether the trace listener should trace the event.
- Parameters
-
cache | The trace_event_cache that contains information for the trace event. |
source | The name of the source. |
event_type | One of the trace_event_type values specifying the type of event that has caused the trace |
id | A trace identifier number. |
message | Message to write. |
◆ should_trace() [2/3]
determines whether the trace listener should trace the event.
- Parameters
-
cache | The trace_event_cache that contains information for the trace event. |
source | The name of the source. |
event_type | One of the trace_event_type values specifying the type of event that has caused the trace |
id | A trace identifier number. |
message | Message to write. |
data1 | A trace data object. |
◆ should_trace() [3/3]
When overridden in a derived class, determines whether the trace listener should trace the event.
- Parameters
-
cache | The trace_event_cache that contains information for the trace event. |
source | The name of the source. |
event_type | One of the trace_event_type values specifying the type of event that has caused the trace |
id | A trace identifier number. |
message | Message to write. |
data1 | A trace data object. |
data_array | A trace data object. |
Implemented in xtd::diagnostics::event_type_filter, and xtd::diagnostics::source_filter.
The documentation for this class was generated from the following file: