xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
diagnostics
boolean_switch.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
../optional.hpp
"
6
#include "
switch_object.hpp
"
7
9
namespace
xtd
{
11
namespace
diagnostics
{
52
class
core_export_
boolean_switch
:
public
xtd::diagnostics::switch_object
{
53
public
:
55
82
boolean_switch
(
const
xtd::string
&
display_name
,
const
xtd::string
&
description
);
88
boolean_switch
(
const
xtd::string
&
display_name
,
const
xtd::string
&
description
,
const
xtd::string
& default_switch_value);
90
92
97
[[nodiscard]]
auto
enabled
() const ->
bool
;
101
auto
enabled
(
bool
enabled
) ->
void
;
103
104
protected:
106
110
auto
on_value_changed
() ->
void
override;
112
};
113
}
114
}
115
xtd::diagnostics::boolean_switch::boolean_switch
boolean_switch(const xtd::string &display_name, const xtd::string &description)
Initializes a new instance of the xtd::diagnostics::boolean_switch class with the specified display n...
xtd::diagnostics::boolean_switch::enabled
auto enabled() const -> bool
Gets a value indicating whether the switch is enabled or disabled.
xtd::diagnostics::boolean_switch::boolean_switch
boolean_switch(const xtd::string &display_name, const xtd::string &description, const xtd::string &default_switch_value)
Initializes a new instance of the xtd::diagnostics::boolean_switch class with the specified display n...
xtd::diagnostics::boolean_switch::on_value_changed
auto on_value_changed() -> void override
Determines whether the new value of the Value property can be parsed as a Boolean value.
xtd::diagnostics::switch_object
Provides an abstract base class to create new debugging and tracing switches.
Definition
switch_object.hpp:35
xtd::diagnostics::switch_object::description
auto description() const noexcept -> const xtd::string &
Gets a description of the switch.
xtd::diagnostics::switch_object::display_name
auto display_name() const noexcept -> const xtd::string &
Gets a name used to identify the switch.
core_export_
#define core_export_
Define shared library export.
Definition
core_export.hpp:13
xtd::string
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition
__string_definitions.hpp:43
xtd::diagnostics
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition
assert_dialog_result.hpp:10
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
optional.hpp
Contains xtd::optional type.
switch_object.hpp
Contains xtd::diagnostics::switch_object class.
Generated on
for xtd by
Gammasoft
. All rights reserved.