Provides a multilevel switch to control tracing and debug output without recompiling your code.
Provides a multilevel switch to control tracing and debug output without recompiling your code.
Definition source_switch.hpp:31
Provides an abstract base class to create new debugging and tracing switches.
Definition switch_base.hpp:36
#define core_export_
Define shared library export.
Definition core_export.hpp:13
- Inheritance
- xtd::object → xtd::diagnostics::switch_base → xtd::diagnostics::source_switch
- Header
#include <xtd/diagnostics/source_switch>
- Namespace
- xtd::diagnostics
- Library
- xtd.core
|
const std::map< xtd::string, xtd::string > & | attributes () const noexcept |
| Gets the custom switch attributes.
|
|
std::map< xtd::string, xtd::string > & | attributes () noexcept |
| Gets the custom switch attributes.
|
|
void | attributes (const std::map< xtd::string, xtd::string > &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.
|
|
bool | equals (const switch_base &value) const noexcept override |
|
virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object.
|
|
| object ()=default |
| Create a new instance of the ultimate base class object.
|
|
virtual size_t | 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<typename object_t > |
xtd::uptr< 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_base &) const noexcept=0 |
| Indicates whether the current object is equal to another object of the same type.
|
|
template<typename object_a_t , typename 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<typename object_a_t , typename 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<typename object_a_t , typename 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.
|
|