IGLib 1.4
The IGLib base library for development of numerical, technical and business applications.
|
Public Member Functions | |
ReporterConsole () | |
Constructor. Initializes all error reporting delegates to default values and sets auxliary object to null. Auxiliary object Obj is set to null. | |
ReporterConsole (object obj, ReportDelegate reportdelegate, ReportLocationDelegate locationdelegate, ReportMessageDelegate messagedelegate, ReserveReportErrorDelegate reservereportdelegate) | |
Constructor. Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Delegates that are not specified are set to default values. | |
ReporterConsole (object obj, ReportDelegate reportdelegate, ReportLocationDelegate locationdelegate, ReportMessageDelegate messagedelegate) | |
Constructor. Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Reserve error reporting delegate is initialized to a default value. Delegates that are not specified are set to default values. | |
ReporterConsole (object obj, ReportDelegate reportdelegate) | |
Constructor. Initializes the error reporter by the specified auxiliary object and the delegate to perform error reporting tasks. Reserve error reporting delegate is initialized to a default value. Delegates for assembling the error location string and error message string are set to their default values, which are adapted to console-like eror reporting systems. | |
ReporterConsole (object obj, ReportDelegate reportdelegate, ReserveReportErrorDelegate reservereportdelegate) | |
Constructor. Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Delegates for assembling the error locatin and error message string are set to their default values, which are adapted to console-like eror reporting systems. | |
Protected Member Functions | |
override void | SetDefaultReportDlg () |
Sets the error reporting delegate to the default value. | |
override void | SetDefaultReportLocationDlg () |
Sets the error location assembling delegate to the default value. This default delegate does not utilize the auxiliary object (and can be mixed with the delegates that do.) | |
override void | SetDefaultReportMessageDlg () |
Sets the error message assembling delegate to the default value. This default delegate does not utilize the auxiliary object (and can be mixed with the delegates that do.) | |
override void | SetDefaultReserveReportErrorDlg () |
Sets the reserve error reporting delegate to the default value. | |
override void | InitBegin () |
Initial part of initialization. Auxiliary object is not affected because default delegates do not utilize it. | |
override void | InitEnd () |
Finalizing part of initialization. Auxiliary object is not affected because default delegates do not utilize it. | |
override void | ReadAppSettingsBasic (string groupname) |
Reads settings for a specified named group of reporters from the application configuration file. | |
Protected Attributes | |
const string | KeyUseConsole = "UseConsole" |
Properties | |
static new bool | GlobalInitialized [get] |
Gets the value indicating whether the global reporter of this class has already been initialized. | |
static new ReporterConsole | Global [get, set] |
Gets the global reporter object. This is typically used for configuring the global reporter. | |
override bool | UseConsole [get, set] |
Gets or sets the flag specifying whether reporting using the system console is performed or not. | |
Private Attributes | |
bool | _UseConsole = true |
Static Private Attributes | |
static ReporterConsole | _Global = null |
static bool | _GlobalInitialized = false |
static object | GlobalLock = new object() |
IG::Lib::ReporterConsole::ReporterConsole | ( | ) | [inline] |
Constructor. Initializes all error reporting delegates to default values and sets auxliary object to null. Auxiliary object Obj is set to null.
IG::Lib::ReporterConsole::ReporterConsole | ( | object | obj, |
ReportDelegate | reportdelegate, | ||
ReportLocationDelegate | locationdelegate, | ||
ReportMessageDelegate | messagedelegate, | ||
ReserveReportErrorDelegate | reservereportdelegate | ||
) | [inline] |
Constructor. Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Delegates that are not specified are set to default values.
obj | Auxiliary object that will be passed to error reporting delegates when called in local methods. |
reportdelegate | Delegates that is called to launc an error report. Methods of this class will pass to this class the auxiliary object, location strings assembled by the location assembling delegate, and error message string assembled by the error message delegate. |
locationdelegate | Delegate that is called to assemble the error location string. The Auxiliary object this.Obj will be internally passed to this delegate any time it is called. |
messagedelegate | Delegate that is called to assemble the error message (without decorations). The Auxiliary object this.Obj will be internally passed to this delegate any time it is called. |
reservereportdelegate | Delegate that is called to report exceptions that occur within error reporting methods. In particular, this must ne as bullet proof as possible. |
IG::Lib::ReporterConsole::ReporterConsole | ( | object | obj, |
ReportDelegate | reportdelegate, | ||
ReportLocationDelegate | locationdelegate, | ||
ReportMessageDelegate | messagedelegate | ||
) | [inline] |
Constructor. Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Reserve error reporting delegate is initialized to a default value. Delegates that are not specified are set to default values.
IG::Lib::ReporterConsole::ReporterConsole | ( | object | obj, |
ReportDelegate | reportdelegate | ||
) | [inline] |
Constructor. Initializes the error reporter by the specified auxiliary object and the delegate to perform error reporting tasks. Reserve error reporting delegate is initialized to a default value. Delegates for assembling the error location string and error message string are set to their default values, which are adapted to console-like eror reporting systems.
IG::Lib::ReporterConsole::ReporterConsole | ( | object | obj, |
ReportDelegate | reportdelegate, | ||
ReserveReportErrorDelegate | reservereportdelegate | ||
) | [inline] |
Constructor. Initializes the error reporter by the specified auxiliary object and delegates used to perform error reporting tasks. Delegates for assembling the error locatin and error message string are set to their default values, which are adapted to console-like eror reporting systems.
obj | Auxiliary object that will be passed to error reporting delegates when called in local methods. |
reportdelegate | Delegates that is called to launc an error report. Methods of this class will pass to this class the auxiliary object, location strings assembled by the location assembling delegate, and error message string assembled by the error message delegate. |
reservereportdelegate | Delegate that is called to report exceptions that occur within error reporting methods. In particular, this must ne as bullet proof as possible. |
override void IG::Lib::ReporterConsole::SetDefaultReportDlg | ( | ) | [inline, protected, virtual] |
Sets the error reporting delegate to the default value.
Reimplemented from IG::Lib::ReporterBase.
override void IG::Lib::ReporterConsole::SetDefaultReportLocationDlg | ( | ) | [inline, protected, virtual] |
Sets the error location assembling delegate to the default value. This default delegate does not utilize the auxiliary object (and can be mixed with the delegates that do.)
Reimplemented from IG::Lib::ReporterBase.
override void IG::Lib::ReporterConsole::SetDefaultReportMessageDlg | ( | ) | [inline, protected, virtual] |
Sets the error message assembling delegate to the default value. This default delegate does not utilize the auxiliary object (and can be mixed with the delegates that do.)
Reimplemented from IG::Lib::ReporterBase.
override void IG::Lib::ReporterConsole::SetDefaultReserveReportErrorDlg | ( | ) | [inline, protected, virtual] |
Sets the reserve error reporting delegate to the default value.
Reimplemented from IG::Lib::ReporterBase.
override void IG::Lib::ReporterConsole::InitBegin | ( | ) | [inline, protected, virtual] |
Initial part of initialization. Auxiliary object is not affected because default delegates do not utilize it.
Reimplemented from IG::Lib::ReporterBase.
override void IG::Lib::ReporterConsole::InitEnd | ( | ) | [inline, protected, virtual] |
Finalizing part of initialization. Auxiliary object is not affected because default delegates do not utilize it.
Reimplemented from IG::Lib::ReporterBase.
override void IG::Lib::ReporterConsole::ReadAppSettingsBasic | ( | string | groupname | ) | [inline, protected, virtual] |
Reads settings for a specified named group of reporters from the application configuration file.
groupname | Name of the group of reporters for which the settings apply. |
Reimplemented from IG::Lib::ReporterBase.
ReporterConsole IG::Lib::ReporterConsole::_Global = null [static, private] |
Reimplemented from IG::Lib::ReporterBase.
bool IG::Lib::ReporterConsole::_GlobalInitialized = false [static, private] |
Reimplemented from IG::Lib::ReporterBase.
object IG::Lib::ReporterConsole::GlobalLock = new object() [static, private] |
Reimplemented from IG::Lib::ReporterBase.
const string IG::Lib::ReporterConsole::KeyUseConsole = "UseConsole" [protected] |
bool IG::Lib::ReporterConsole::_UseConsole = true [private] |
new bool IG::Lib::ReporterConsole::GlobalInitialized [static, get] |
Gets the value indicating whether the global reporter of this class has already been initialized.
Reimplemented from IG::Lib::ReporterBase.
new ReporterConsole IG::Lib::ReporterConsole::Global [static, get, set] |
Gets the global reporter object. This is typically used for configuring the global reporter.
Reimplemented from IG::Lib::ReporterBase.
override bool IG::Lib::ReporterConsole::UseConsole [get, set] |
Gets or sets the flag specifying whether reporting using the system console is performed or not.
Implements IG::Lib::IReporterConsole.