home *** CD-ROM | disk | FTP | other *** search
- {*******************************************************}
- { }
- { MiTeC System Information Component }
- { Common Routines, Definitions & Types }
- { version 8.4 for Delphi 5,6,7 }
- { }
- { Copyright ⌐ 1997,2003 Michal Mutl }
- { }
- {*******************************************************}
-
- {$INCLUDE MITEC_DEF.INC}
-
- unit MSI_Common;
-
- interface
-
- uses SysUtils, Windows, Classes, MiTeC_Journal, MSI_ExceptionStack;
-
- type
- TExceptionMode = (emDefault, emExceptionStack, emJournal);
- TExceptionModes = set of TExceptionMode;
-
- EMSIC_Error = class(Exception);
-
- TMSIC_TraceRecord = record
- ExceptionModes: TExceptionModes;
- ObjectName,
- FunctionName: ShortString;
- end;
- TMSIC_TraceStack = array of TMSIC_TraceRecord;
-
- const
- cMajorVersion = '8';
- cMinorVersion = '4';
- cVersion = cMajorVersion+'.'+cMinorVersion;
- cCompName = 'MiTeC System Information Component';
- cCopyright = 'Copyright '#169' 1997,2003 Michal Mutl';
- cWWW = 'http://www.mitec.d2.cz/';
- cEmail = 'mailto:mitec@atlas.cz';
-
- procedure StringsToRep(sl: TStrings; CountKwd,ItemKwd: string; var Report: TStringlist);
-
- procedure ReportHeader(var sl: TStringList);
- procedure ReportFooter(var sl: TStringList);
- function CheckXMLValue(AValue: string): string;
-
- procedure InitializeJournal(JournalPath: string = '');
- procedure ShutdownJournal;
-
- procedure PushTrace(AExceptionModes: TExceptionModes; AObjectName,AClassName,AFunctionName: ShortString); overload;
- procedure PushTrace(AExceptionModes: TExceptionModes; AObject: TObject; AFunctionName: ShortString); overload;
- procedure PopTrace;
- function GetTrace: TMSIC_TraceRecord;
-
- procedure ShowExceptionStack;
-
- var
- Journal: TJournal;
- TraceStack: TMSIC_TraceStack;
-
- implementation
-
-