CAST II Game Engine

   DESCRIPTION       FEATURES       SCREENSHOTS       FORUMS       DOCUMENTATION       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Unit TextFile

Description

Text file unit

(C) 2004-2007 George "Mirage" Bakhtadze. www.casteng.com
The source code may be used under either MPL 1.1 or LGPL 2.1 license. See included license.txt file
Unit contains some text file related utilities and logging class

Classes, Interfaces and Objects

NameDescription
Class TLogSessionLogger class

Functions and Procedures

Overview

procedure ChangeLoggerClass(NewClass: CLogSession);
function ReadLine(var TextFile : text):string;
function SkipBeforeSTR(var TextFile : text; SkipSTR : string):boolean;

Description

procedure ChangeLoggerClass(NewClass: CLogSession);

Replaces logger with a new one of the specified class

function ReadLine(var TextFile : text):string;

 

function SkipBeforeSTR(var TextFile : text; SkipSTR : string):boolean;

function SetLength(S : string; DLength : word):string;

Types

Overview

CLogSession = of TLogSession;
TLogLevels = set of TLogLevel;

Description

CLogSession = of TLogSession;

Class reference to log session class

TLogLevels = set of TLogLevel;

Log level setting type

Enumerations

TLogLevel
Levels of importance of log messages
 lkDebug 
 lkInfo 
 lkNotice 
 lkWarning 
 lkError 
 lkFatalError 
TLogTimeFormat
Log date and time setting type
 lfNonedoesn't output any time information
 lfDateinclude date in the log
 lfTimeinclude time in the log
 lfDateTimeinclude date and time in the log
 lfElapsedinclude time elapsed since startup in the log

Constants

Overview

lkPrefix : array[TLogLevel] of string[7] = (' (D) ', ' (i) ', ' (I) ', '(WW) ', '(EE) ', '(!!) ');
llMax : TLogLevels = [lkDebug, lkInfo, lkNotice, lkWarning, lkError, lkFatalError];
llMedium : TLogLevels = [lkNotice, lkWarning, lkError, lkFatalError];
llMin : TLogLevels = [lkError, lkFatalError];

Description

lkPrefix : array[TLogLevel] of string[7] = (' (D) ', ' (i) ', ' (I) ', '(WW) ', '(EE) ', '(!!) ');

lkDebug = 0; lkInfo = 1; lkNotice = 2; lkWarning = 3; lkError = 4; lkFatalError = 5; lkTitle = lkNotice;

llMax : TLogLevels = [lkDebug, lkInfo, lkNotice, lkWarning, lkError, lkFatalError];

lfLogWarnings = 1 shl 11; lfLogErrors = 1 shl 12; LogFatalErrors = 1 shl 13;

llMedium : TLogLevels = [lkNotice, lkWarning, lkError, lkFatalError];

 

llMin : TLogLevels = [lkError, lkFatalError];

 

Variables

Overview

Log: TLogSession;

Description

Log: TLogSession;

Current logger

Last modified: 4 Jul, 2008
Copyright (C) 2006-2008, casteng.com