xtd - Reference Guide  0.1.0
Modern c++17 framework to create console, gui and unit test applications on Windows, macOS and Linux.
xtd::forms::control_trace_listener Class Reference
Inheritance diagram for xtd::forms::control_trace_listener:
xtd::diagnostics::trace_listener

Public Member Functions

 control_trace_listener (xtd::forms::icontrol_trace &control_trace)
 
void close () override
 When overridden in a derived class, closes the output stream so it no longer receives tracing or debugging output. More...
 
virtual xtd::forms::icontrol_tracecontrol_trace ()
 
virtual void control_trace (xtd::forms::icontrol_trace &control_trace)
 
virtual void fail (const std::string &message)
 Emits an error message to the listener you create when you implement the TraceListener class. More...
 
virtual void fail (const std::string &message, const std::string &detail_message)
 Emits the specified error message. More...
 
void flush () override
 When overridden in a derived class, flushes the output buffer. More...
 
unsigned int indent_level () const
 Gets the indent level. More...
 
void indent_level (unsigned int indent_level)
 Sets the indent level. More...
 
unsigned int indent_size () const
 Gets the number of spaces in an indent. More...
 
void indent_size (unsigned int indent_size)
 Sets the number of spaces in an indent. More...
 
virtual bool is_thread_safe () const
 Gets a value indicating whether the trace listener is thread safe. More...
 
const std::string & name () const
 Gets or sets a name for this TraceListener. More...
 
void name (const std::string &name)
 Sets a name for this TraceListener. More...
 
template<typename object >
trace_listeneroperator<< (object &&message)
 
template<typename object >
void trace_data (const xtd::diagnostics::trace_event_cache &event_cache, const std::string &source, const xtd::diagnostics::trace_event_type &event_type, int id, const object &data)
 Writes trace information, a data object and event information to the listener specific output. More...
 
template<typename object >
void trace_data (const xtd::diagnostics::trace_event_cache &event_cache, const std::string &source, const xtd::diagnostics::trace_event_type &event_type, int id, const std::vector< object > &data)
 Writes trace information, a data object and event information to the listener specific output. More...
 
template<typename ... objects>
void trace_data (const xtd::diagnostics::trace_event_cache &event_cache, const std::string &source, const xtd::diagnostics::trace_event_type &event_type, int id, const objects &... data)
 Writes trace information, an array of data objects and event information to the listener specific output. More...
 
virtual void trace_event (const xtd::diagnostics::trace_event_cache &event_cache, const std::string &source, const xtd::diagnostics::trace_event_type &event_type, int id)
 Writes trace and event information to the listener specific output. More...
 
virtual void trace_event (const xtd::diagnostics::trace_event_cache &event_cache, const std::string &source, const xtd::diagnostics::trace_event_type &event_type, int id, const std::string &message)
 Writes trace information, a message, and event information to the listener specific output. More...
 
template<typename ... objects>
void trace_event (const xtd::diagnostics::trace_event_cache &event_cache, const std::string &source, const xtd::diagnostics::trace_event_type &event_type, int id, const std::string &format, const objects &... args)
 Writes trace information, a formatted array of objects and event information to the listener specific output. More...
 
const trace_options & trace_output_options () const
 Gets the trace output options. More...
 
void trace_output_options (const trace_options &trace_output_options)
 Sets the trace output options. More...
 
template<typename activity_id_type >
void trace_transfer (const xtd::diagnostics::trace_event_cache &event_cache, const std::string &source, int id, const std::string &message, const activity_id_type &related_activity_id)
 Writes trace information, a message, a related activity identity and event information to the listener specific output. More...
 
void write (const std::string &message) override
 
template<typename object >
void write (const object &o)
 Writes the value of the object's ToString method to the listener you create when you implement the TraceListener class. More...
 
template<typename object >
void write (const object &o, const std::string &category)
 Writes a category name and the value of the object's ToString method to the listener you create when you implement the TraceListener class. More...
 
void write_line (const std::string &message) override
 
template<typename object >
void write_line (const object &o)
 Writes the value of the object's ToString method to the listener you create when you implement the TraceListener class. More...
 
template<typename object >
void write_line (const object &o, const std::string &category)
 Writes a category name and the value of the object's ToString method to the listener you create when you implement the TraceListener class. More...
 

Static Public Member Functions

static std::shared_ptr< xtd::diagnostics::trace_listenercreate (xtd::forms::icontrol_trace &control_trace)
 

Protected Member Functions

bool need_indent () const
 
void need_indent (bool need_indent)
 
void thread_safe (bool thread_safe)
 
virtual void write_indent ()
 Writes the indent to the listener you create when you implement this class, and resets the NeedIndent property to false. More...
 

The documentation for this class was generated from the following file: