Provides a multilevel switch to control tracing and debug output without recompiling your code.
source_switch(const xtd::string &name)
Initializes a new instance of the source_switch class, specifying the name of the source.
Provides an abstract base class to create new debugging and tracing switches.
Definition switch_object.hpp:36
#define core_export_
Define shared library export.
Definition core_export.hpp:13
- Inheritance
- xtd::object → xtd::diagnostics::switch_object → xtd::diagnostics::source_switch
- Header
#include <xtd/diagnostics/source_switch>
- Namespace
- xtd::diagnostics
- Library
- xtd.core
|
using | attribute_collection |
| Represents the attributes collection.
|
|
const attribute_collection & | attributes () const noexcept |
| Gets the custom switch attributes.
|
|
attribute_collection & | attributes () noexcept |
| Gets the custom switch attributes.
|
|
void | attributes (const attribute_collection &attributes) noexcept |
| Sets the custom switch attributes.
|
|
const xtd::string & | description () const noexcept |
| Gets a description of the switch.
|
|
const xtd::string & | display_name () const noexcept |
| Gets a name used to identify the switch.
|
|
const xtd::string & | value () const noexcept |
| Gets the value of the switch.
|
|
void | value (const xtd::string &value) |
| Sets the value of the switch.
|
|
bool | equals (const xtd::object &obj) const noexcept override |
| Determines whether the specified object is equal to the current object.
|
|
bool | equals (const switch_object &other) const noexcept override |
| Determines whether the specified object is equal to the current object.
|
|
| object ()=default |
| Create a new instance of the ultimate base class object.
|
|
virtual xtd::size | get_hash_code () const noexcept |
| Serves as a hash function for a particular type.
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance.
|
|
template<class object_t> |
xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object.
|
|
virtual xtd::string | to_string () const noexcept |
| Returns a xtd::string that represents the current object.
|
|
virtual bool | equals (const switch_object &) const noexcept=0 |
| Indicates whether the current object is equal to another object of the same type.
|
|
template<class object_a_t, class object_b_t> |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal.
|
|
template<class object_a_t, class object_b_t> |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are the same instance.
|
|