xtd 0.2.0
Loading...
Searching...
No Matches
source_filter.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "trace_filter.hpp"
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.hpp:28
Represents text as a sequence of character units.
Definition basic_string.hpp:79
Indicates whether a listener should trace a message based on the source of a trace.
Definition source_filter.hpp: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.hpp:30
Provides the base class for trace filter implementations.
Definition trace_filter.hpp:35
#define core_export_
Define shared library export.
Definition core_export.hpp:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
trace_event_type
Identifies the type of event that has caused the trace.
Definition trace_event_type.hpp:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::diagnostics::trace_filter class.