Represents a collection of xtd::diagnostics::trace_listener.
Represents a collection of xtd::diagnostics::trace_listener.
Definition trace_listener_collection.h:29
#define core_export_
Define shared library export.
Definition core_export.h:13
- Inheritance
- std::vector<xtd::sptr<xtd::diagnostics::trace_listener>> → xtd::diagnostics::trace_listener_collection
- Header
#include <xtd/diagnostics/trace_listener_collection>
- Namespace
- xtd::diagnostics
- Library
- xtd.core
|
using | base = std::vector< value_type > |
| Represents the base type of the collection.
|
|
|
virtual bool | equals (const trace_listener_collection &) const noexcept=0 |
| Indicates whether the current object is equal to another object of the same type.
|
|
◆ base
Represents the base type of the collection.
◆ trace_listener_collection() [1/2]
xtd::diagnostics::trace_listener_collection::trace_listener_collection |
( |
const allocator_type & |
allocator = allocator_type() | ) |
|
|
explicit |
◆ trace_listener_collection() [2/2]
xtd::diagnostics::trace_listener_collection::trace_listener_collection |
( |
const std::initializer_list< value_type > & |
il | ) |
|
◆ operator[]() [1/2]
const_reference xtd::diagnostics::trace_listener_collection::operator[] |
( |
const xtd::string & |
name | ) |
const |
Gets the first xtd::diagnostics::trace_listener in the list with the specified name.
- Parameters
-
- Returns
- The first xtd::diagnostics::trace_listener in the list with the given Name. This item returns empty if no xtd::diagnostics::trace_listener with the given name can be found.
- Examples
- This example shows how to write "User message" text on the default trace listener of debug with name operator:
#include <xtd/xtd>
auto main() -> int {
}
static listener_collection & listeners() noexcept
Gets the collection of listeners that is monitoring the trace output.
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition assert_dialog_result.h:10
◆ operator[]() [2/2]
reference xtd::diagnostics::trace_listener_collection::operator[] |
( |
const xtd::string & |
name | ) |
|
The documentation for this class was generated from the following file: