xtd - Reference Guide 0.2.0
event_type_filter.h
Go to the documentation of this file.
1 #pragma once
5 #include "source_levels.h"
6 #include "trace_filter.h"
7 
9 namespace xtd {
11  namespace diagnostics {
25  class core_export_ event_type_filter : public xtd::diagnostics::trace_filter {
26  public:
28 
34 
36 
41  xtd::diagnostics::source_levels event_type() const;
45  void event_type(xtd::diagnostics::source_levels level);
47 
49 
60  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) override;
62 
63  private:
65  };
66  }
67 }
Contains xtd::diagnostics::trace_filter class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
source_levels
Specifies the levels of trace messages filtered by the source switch and event type filter...
Definition: source_levels.h:21
Provides trace event data specific to a thread and a process.
Definition: trace_event_cache.h:27
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:50
Contains xtd::diagnostics::source_levels enum class.
Indicates that all styles except allow_binary_specifier, allow_octal_specifier and allow_hex_specifie...
Does not allow any events through.
Provides the base class for trace filter implementations.
Definition: trace_filter.h:32
Indicates whether a listener should trace based on the event type.
Definition: event_type_filter.h:25
trace_event_type
Identifies the type of event that has caused the trace.
Definition: trace_event_type.h:21