8#include "../iequatable.h"
16 namespace diagnostics {
48 const std::map<xtd::string, xtd::string>&
attributes() const noexcept;
51 std::map<
xtd::
string,
xtd::
string>& attributes() noexcept;
54 void attributes(const std::map<
xtd::
string,
xtd::
string>& attributes) noexcept;
59 const
xtd::
string& description() const noexcept;
64 const
xtd::
string& display_name() const noexcept;
71 bool equals(const
switch_base& value) const noexcept override;
90 switch_base(const
xtd::
string& display_name, const
xtd::
string& description, const
xtd::
string& default_switch_value);
98 int32 switch_setting() const noexcept;
101 void switch_setting(
int32 switch_setting);
108 const
xtd::
string& value() const noexcept;
114 void value(const
xtd::
string& value);
125 virtual std::vector<
xtd::
string> get_supported_attributes() const noexcept;
128 virtual
void on_switch_setting_changed();
134 virtual
void on_value_changed();
138 xtd::
string display_name_;
139 xtd::
string description_;
140 std::map<
xtd::
string,
xtd::
string> attributes_;
141 int32 switch_setting_ = 0;
Provides an abstract base class to create new debugging and tracing switches.
Definition switch_base.h:36
const std::map< xtd::string, xtd::string > & attributes() const noexcept
Gets the custom switch attributes.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
#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
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::diagnostics::source_levels enum class.