xtd - Reference Guide 0.2.0
source_filter.h
Go to the documentation of this file.
1 #pragma once
5 #include "trace_filter.h"
6 
8 namespace xtd {
10  namespace diagnostics {
26  class core_export_ source_filter : public xtd::diagnostics::trace_filter {
27  public:
29 
33  explicit source_filter(const xtd::ustring& source);
35 
37 
41  const xtd::ustring& source() const;
44  void source(const xtd::ustring& source);
46 
48 
58  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;
60 
61  private:
62  xtd::ustring source_;
63  };
64  }
65 }
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
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
Indicates that all styles except allow_binary_specifier, allow_octal_specifier and allow_hex_specifie...
Indicates whether a listener should trace a message based on the source of a trace.
Definition: source_filter.h:26
Provides the base class for trace filter implementations.
Definition: trace_filter.h:32
trace_event_type
Identifies the type of event that has caused the trace.
Definition: trace_event_type.h:21