xtd 0.2.0
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
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, xtd::any_object 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:29
source_filter(const xtd::string &source)
Initializes a new instance of the xtd::diagnostics::source_filter class, specifying the name of the t...
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, xtd::any_object data1, const xtd::collections::generic::list< xtd::any_object > &data_array) noexcept override
Determines whether the trace listener should trace the event.
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:29
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
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
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::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.hpp:10
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition assert_dialog_result.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::diagnostics::trace_filter class.