Class ACounterList

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type ACounterList = class(AStringTree)

Description

This class is used by ALog and its descendants to manage a list of named counters: one for each type of message that can be logged.

As with other descendants of ABinaryTree, the list of counters does not support duplicate counter names.

Hierarchy

Overview

Methods

Public function init: boolean; override;
Public function printSelfTo(const Dest: ATextOutputStream; prefix: AnsiString = ''; suffix: AnsiString = ''): TStreamIOSize; override;

Description

Methods

Public function init: boolean; override;

Initializer

Public function printSelfTo(const Dest: ATextOutputStream; prefix: AnsiString = ''; suffix: AnsiString = ''): TStreamIOSize; override;

Print a string representation of the counter list and its counters to the specified stream.

This method will print a summary of each counter in the list, along with that counter's current value. The header of the summary will be the value of ctlsPrintedSummaryHeader. Both prefix and suffix are used by this method, if supplied; however, the method passes the value of ctlsDefaultPrintingPrefix and ctlsDefaultPrintingSuffix to ACounter.printTo for each named counter; this ensures that each counter is printed on its own line and is indented beneath the banner header.

Returns

The total number of bytes printed to Dest.


Generated by PasDoc 0.13.0 on 2015-01-10 17:13:18