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 ASPOSECPP_SHARED_API void Fail (const String &message)
 Send fail message. More...
 
static ASPOSECPP_SHARED_API void Assert (bool condition)
 Assert condition and send information on failure. More...
 
static ASPOSECPP_SHARED_API void Assert (bool condition, const String &message)
 Assert condition and send information on failure. More...
 
static ASPOSECPP_SHARED_API void Assert (bool condition, const char *message)
 Assert condition and send information on failure. More...
 
static ASPOSECPP_SHARED_API void Assert (bool condition, const String &message, const String &detailMessage)
 Assert condition and send information on failure. More...
 
static ASPOSECPP_SHARED_API void WriteLine (const String &message)
 Writes line to debug interface. More...
 
static ASPOSECPP_SHARED_API void WriteLine (const String &message, const String &message2)
 Writes line to debug interface. More...
 
static ASPOSECPP_SHARED_API void WriteLine (const char_t *message)
 Writes line to debug interface. More...
 
static ASPOSECPP_SHARED_API void WriteLine (const SharedPtr< Object > &obj)
 Writes line to debug interface. More...
 
static ASPOSECPP_SHARED_API void Write (const String &message)
 Writes string to debug interface. More...
 
static ASPOSECPP_SHARED_API void Write (const char_t *message)
 Writes string to debug interface. More...
 
static ASPOSECPP_SHARED_API void WriteIf (bool condition, const System::String &message)
 Writes string to debug interface if a condition is true. More...
 
static ASPOSECPP_SHARED_API void WriteLineIf (bool condition, const System::String &message)
 Writes line to debug interface if a condition is true. More...
 
static ASPOSECPP_SHARED_API void Print (const String &message)
 Print message to debug interface. More...
 
static ASPOSECPP_SHARED_API void Print (const String &format, const System::ArrayPtr< SharedPtr< System::Object >> &args)
 Print message to debug interface. More...
 
static ASPOSECPP_SHARED_API 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/4]

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

Assert condition and send information on failure.

Parameters
conditionCondition value.

◆ Assert() [2/4]

static ASPOSECPP_SHARED_API 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/4]

static ASPOSECPP_SHARED_API void System::Diagnostics::Debug::Assert ( bool  condition,
const char *  message 
)
static

Assert condition and send information on failure.

Parameters
conditionCondition value.
messageMessage to populate on assertion failure.

◆ Assert() [4/4]

static ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API void System::Diagnostics::Debug::Fail ( const String message)
static

Send fail message.

Parameters
messageFailure description.

◆ get_Listeners()

static ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API void System::Diagnostics::Debug::Print ( const String message)
static

Print message to debug interface.

Parameters
messageMessage to write.

◆ Print() [2/2]

static ASPOSECPP_SHARED_API 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.

◆ Write() [1/2]

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

Writes string to debug interface.

Parameters
messageMessage to write.

◆ Write() [2/2]

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

Writes string to debug interface.

Parameters
messageMessage to write.

◆ WriteIf()

static ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API void System::Diagnostics::Debug::WriteLine ( const String message)
static

Writes line to debug interface.

Parameters
messageMessage to write.

◆ WriteLine() [2/4]

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

Writes line to debug interface.

Parameters
messageMessage to write.
message2Extra message.

◆ WriteLine() [3/4]

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

Writes line to debug interface.

Parameters
messageMessage to write.

◆ WriteLine() [4/4]

static ASPOSECPP_SHARED_API void System::Diagnostics::Debug::WriteLine ( const SharedPtr< Object > &  obj)
static

Writes line to debug interface.

Parameters
objObject to dump.

◆ WriteLineIf()

static ASPOSECPP_SHARED_API 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.