xtd 0.2.0
Loading...
Searching...
No Matches
source_filter.h
Go to the documentation of this file.
1
4#pragma once
5#include "trace_filter.h"
6
8namespace xtd {
10 namespace diagnostics {
31 public:
33
37 explicit source_filter(const xtd::string& source);
39
41
45 const xtd::string& source() const noexcept;
48 void source(const xtd::string& source) noexcept;
50
52
62 bool should_trace(const xtd::diagnostics::trace_event_cache& cache, const xtd::string& source, xtd::diagnostics::trace_event_type event_type, int32 id, const xtd::string& message, std::any data1, const xtd::collections::generic::list<xtd::any_object>& data_array) noexcept override;
64
65 private:
66 xtd::string source_;
67 };
68 }
69}
Represent a polymorphic wrapper capable of holding any type.
Definition any_object.h:28
Represents text as a sequence of character units.
Definition basic_string.h:79
Indicates whether a listener should trace a message based on the source of a trace.
Definition source_filter.h:30
source_filter(const xtd::string &source)
Initializes a new instance of the xtd::diagnostics::source_filter class, specifying the name of the t...
const xtd::string & source() const noexcept
Gets the name of the trace source.
Provides trace event data specific to a thread and a process.
Definition trace_event_cache.h:30
Provides the base class for trace filter implementations.
Definition trace_filter.h:35
#define core_export_
Define shared library export.
Definition core_export.h:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
trace_event_type
Identifies the type of event that has caused the trace.
Definition trace_event_type.h:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::diagnostics::trace_filter class.