Asposecpplib
System::Diagnostics::Debug Struct Reference

Collection of debug methods allowing it sending debug information to registered listeners. All output functions work in Debug only. This is a static type with no instance services. You should never create instances of it by any means. More...

Static Public Member Functions

static void Fail (const String &message)
 Send fail message. More...
 
static void Assert (bool condition)
 Assert condition and send information on failure. More...
 
static void Assert (bool condition, const String &message)
 Assert condition and send information on failure. More...
 
static void Assert (bool condition, const String &message, const String &detailMessage)
 Assert condition and send information on failure. More...
 
static void WriteLine (const String &message)
 Writes line to debug interface. More...
 
static void WriteLine (const String &message, const String &message2)
 Writes line to debug interface. More...
 
static void WriteLine (const char_t *message)
 Writes line to debug interface. More...
 
static void WriteLine (Object::ptr obj)
 Writes line to debug interface. More...
 
static void Write (const String &message)
 Writes string to debug interface. More...
 
static void Write (const char_t *message)
 Writes string to debug interface. More...
 
static void WriteIf (bool condition, const System::String &message)
 Writes string to debug interface if a condition is true. More...
 
static void WriteLineIf (bool condition, const System::String &message)
 Writes line to debug interface if a condition is true. More...
 
static void Print (const String &message)
 Print message to debug interface. More...
 
static void Print (const String &format, const System::ArrayPtr< SharedPtr< System::Object >> &args)
 Print message to debug interface. More...
 
static System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< TraceListener > > > get_Listeners ()
 Accesses static list of listeners. More...
 

Detailed Description

Collection of debug methods allowing it sending debug information to registered listeners. All output functions work in Debug only. This is a static type with no instance services. You should never create instances of it by any means.

Member Function Documentation

◆ Assert() [1/3]

static void System::Diagnostics::Debug::Assert ( bool  condition)
static

Assert condition and send information on failure.

Parameters
conditionCondition value.

◆ Assert() [2/3]

static void System::Diagnostics::Debug::Assert ( bool  condition,
const String message 
)
static

Assert condition and send information on failure.

Parameters
conditionCondition value.
messageMessage to populate on assertion failure.

◆ Assert() [3/3]

static void System::Diagnostics::Debug::Assert ( bool  condition,
const String message,
const String detailMessage 
)
static

Assert condition and send information on failure.

Parameters
conditionCondition value.
messageMessage to populate on assertion failure.
detailMessageDetailed message to populate on assertion failure.

◆ Fail()

static void System::Diagnostics::Debug::Fail ( const String message)
static

Send fail message.

Parameters
messageFailure description.

◆ get_Listeners()

static System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<TraceListener> > > System::Diagnostics::Debug::get_Listeners ( )
static

Accesses static list of listeners.

Returns
List of delegates being envoked on each write operation.

◆ Print() [1/2]

static void System::Diagnostics::Debug::Print ( const String format,
const System::ArrayPtr< SharedPtr< System::Object >> &  args 
)
static

Print message to debug interface.

Parameters
formatFormat string.
argsArguments to substitute to format string.

◆ Print() [2/2]

static void System::Diagnostics::Debug::Print ( const String message)
static

Print message to debug interface.

Parameters
messageMessage to write.

◆ Write() [1/2]

static void System::Diagnostics::Debug::Write ( const char_t *  message)
static

Writes string to debug interface.

Parameters
messageMessage to write.

◆ Write() [2/2]

static void System::Diagnostics::Debug::Write ( const String message)
static

Writes string to debug interface.

Parameters
messageMessage to write.

◆ WriteIf()

static void System::Diagnostics::Debug::WriteIf ( bool  condition,
const System::String message 
)
static

Writes string to debug interface if a condition is true.

Parameters
conditionCondition value.
messageMessage to write.

◆ WriteLine() [1/4]

static void System::Diagnostics::Debug::WriteLine ( const char_t *  message)
static

Writes line to debug interface.

Parameters
messageMessage to write.

◆ WriteLine() [2/4]

static void System::Diagnostics::Debug::WriteLine ( const String message)
static

Writes line to debug interface.

Parameters
messageMessage to write.

◆ WriteLine() [3/4]

static void System::Diagnostics::Debug::WriteLine ( const String message,
const String message2 
)
static

Writes line to debug interface.

Parameters
messageMessage to write.
message2Extra message.

◆ WriteLine() [4/4]

static void System::Diagnostics::Debug::WriteLine ( Object::ptr  obj)
static

Writes line to debug interface.

Parameters
objObject to dump.

◆ WriteLineIf()

static void System::Diagnostics::Debug::WriteLineIf ( bool  condition,
const System::String message 
)
static

Writes line to debug interface if a condition is true.

Parameters
conditionCondition value.
messageMessage to write.