Provides the base class for trace filter implementations.
Methods | |
virtual bool | should_trace (const xtd::diagnostics::trace_event_cache &cache, const xtd::ustring &source, xtd::diagnostics::trace_event_type event_type, int32 id, const xtd::ustring &message, std::any data1, const std::vector< std::any > &data_array) noexcept=0 |
When overridden in a derived class, determines whether the trace listener should trace the event. More... | |
Protected constructors | |
trace_filter ()=default | |
Initializes a new instance of the trace_filter class. More... | |
Protectted methods | |
bool | should_trace (const xtd::diagnostics::trace_event_cache &cache, const xtd::ustring &source, xtd::diagnostics::trace_event_type event_type, int32 id, const xtd::ustring &message) noexcept |
determines whether the trace listener should trace the event. More... | |
bool | should_trace (const xtd::diagnostics::trace_event_cache &cache, const xtd::ustring &source, xtd::diagnostics::trace_event_type event_type, int32 id, const xtd::ustring &message, std::any data1) noexcept |
determines whether the trace listener should trace the event. More... | |
Additional Inherited Members | |
![]() | |
object ()=default | |
Create a new instance of the ultimate base class object. More... | |
bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. More... | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. More... | |
virtual type_object | get_type () const noexcept |
Gets the type of the current instance. More... | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const noexcept |
Creates a shallow copy of the current object. More... | |
virtual xtd::ustring | to_string () const noexcept |
Returns a sxd::ustring that represents the current object. More... | |
![]() | |
static bool | equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are considered equal. More... | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. More... | |
![]() | |
abstract_object ()=default | |
Initializes a new instance of the xtd::abstract_object class. More... | |
|
protecteddefault |
Initializes a new instance of the trace_filter class.
|
pure virtualnoexcept |
When overridden in a derived class, determines whether the trace listener should trace the event.
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.
|
protectednoexcept |
determines whether the trace listener should trace the event.
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. |
|
protectednoexcept |
determines whether the trace listener should trace the event.
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. |