15 namespace diagnostics {
37 const std::map<xtd::ustring, xtd::ustring>&
attributes()
const;
109 std::map<xtd::ustring, xtd::ustring> attributes_;
110 int32_t switch_setting_ = 0;
Provides an abstract base class to create new debugging and tracing switches.
Definition: switch_base.h:26
void switch_setting(int32_t switch_setting)
Sets the current setting for this switch.
switch_base(const xtd::ustring &display_name, const xtd::ustring &description)
Initializes a new instance of the switch_base class.
virtual std::vector< xtd::ustring > get_supported_attributes() const
Gets the custom attributes supported by the switch.
void value(const xtd::ustring &value)
Sets the value of the switch.
const xtd::ustring & value() const
Gets the value of the switch.
virtual void on_switch_setting_changed()
Invoked when the switch_setting property is changed.
const xtd::ustring & display_name() const
Gets a name used to identify the switch.
void attributes(const std::map< xtd::ustring, xtd::ustring > &attributes)
Sets the custom switch attributes.
switch_base(const xtd::ustring &display_name, const xtd::ustring &description, const xtd::ustring &default_switch_value)
Initializes a new instance of the switch_base class.
int32_t switch_setting() const
Gets the current setting for this switch.
std::map< xtd::ustring, xtd::ustring > & attributes()
Gets the custom switch attributes.
virtual void on_value_changed()
Invoked when the value property is changed.
const std::map< xtd::ustring, xtd::ustring > & attributes() const
Gets the custom switch attributes @rettur nA StringDictionary containing the case-insensitive custom ...
const xtd::ustring & description() const
Gets a description of the switch.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition: object.h:26
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::diagnostics::source_levels enum class.