#include <trace_listener_collection.h>
Represents a collection of xtd::diagnostics::trace_listener.
- Namespace
- xtd::diagnostics
- Library
- xtd.core
Inherits std::vector< std::shared_ptr< xtd::diagnostics::trace_listener > >.
|
using | base = std::vector< value_type > |
| Represents the base type of the collection.
|
|
◆ 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]
reference xtd::diagnostics::trace_listener_collection::operator[] |
( |
const xtd::ustring & |
name | ) |
|
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>
int main() {
}
static listener_collection & listeners()
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]
const_reference xtd::diagnostics::trace_listener_collection::operator[] |
( |
const xtd::ustring & |
name | ) |
const |
The documentation for this class was generated from the following file: