11 namespace diagnostics {
44 virtual const std::ostream& ostream()
const;
47 virtual void ostream(
const std::ostream& ostream);
53 void close()
override;
55 #if !defined(NDEBUG) || defined(DEBUG) || defined(TRACE) 62 #if !defined(NDEBUG) || defined(DEBUG) || defined(TRACE) 69 #if !defined(NDEBUG) || defined(DEBUG) || defined(TRACE) 79 std::ostream ostream_ {
nullptr};
Provides the abstract base class for the listeners who monitor trace and debug output.
Definition: trace_listener.h:35
void write(const object &o)
Writes the value of the object's ToString method to the listener you create when you implement the Tr...
Definition: trace_listener.h:260
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
void flush() override
When overridden in a derived class, flushes the output buffer.
Definition: ostream_trace_listener.h:54
void write_line(const xtd::ustring &message) override
Writes the message to the listener you create when you implement the trace_listener class followed by...
Definition: ostream_trace_listener.h:68
Directs tracing or debugging output to a std::ostream, such as std::fstream, std::stream...
Definition: ostream_trace_listener.h:25
void write(const xtd::ustring &message) override
Writes the message to the listener you create when you implement the trace_listener class...
Definition: ostream_trace_listener.h:61
void write_line(const object &o)
Writes the value of the object's ToString method to the listener you create when you implement the Tr...
Definition: trace_listener.h:283
Contains xtd::diagnostics::trace_listener listener.