Classe TStringListBase

Unit

Declaração

type TStringListBase = class(TStringList)

Descrição

A a TStringListBase* é usada para indexar uma lista de objetos ondes os mesmos são excluídos ao destruir a lista

Hierarquia

Visão Geral

Campos

Protected Index_Currente: Integer;
Protected OkBof: Boolean;
Protected okEof: Boolean;
Public Nr: PtrInt;

Métodos

Public procedure SaveToFile(const FileName: string); Override;
Public Procedure AddTag(Const aTags:String); Virtual;
Public class procedure testTags1;
Public Procedure AddTagValue(Const aTagValues:String); Virtual;
Public class procedure testTags2;
Public constructor Create(Const aTags:String); overload; virtual;
Public constructor Create(ALimit: longint;AOrdem:Boolean ); overload; virtual;
Public Function ClearKey: Boolean;
Public procedure Clear; override;
Public function IndexOf(const S: string): Integer; override;
Public procedure Delete(Index: Integer); override;
Public destructor Destroy; override;
Public function Find(const S: string; Out Index: Integer): Boolean; override;
Public Function FindKey(WKey:String):Boolean;
Public Function NextKey: Boolean;
Public Function getRec(aNRec:PtrInt):PtrInt; virtual; overload;
Public Function SearchKey(WKey:String):Boolean;
Public Function NewStr(S : String):Boolean; overload;
Public Function Append(S : String):Boolean;
Public procedure AddSItem(P : TConsts.PSItem; ConvertIdioma : TConsts.TConvertIdioma; OkDisposeSItems:Boolean); Overload;
Public procedure AddSItem(P : TConsts.PSItem); Overload;
Public Function CloneSItems(Const Items: TConsts.PSItem):TConsts.PSItem;
Public Function CopyTemplateFrom(Const aTemplate:TConsts.tString): TConsts.tString;
Public Function PListSItem: TConsts.PSItem;

Propriedades

Public property KeyMaster : String Read _KeyMaster Write SetKeyMaster;
Public property OkDestroy_Object : Boolean Write _OkDestroy_Object;

Descrição

Campos

Protected Index_Currente: Integer;
 
Protected OkBof: Boolean;

Inicio de arquivo

Protected okEof: Boolean;

Fim de arquivo

Public Nr: PtrInt;

Número do registro corrente

Métodos

Public procedure SaveToFile(const FileName: string); Override;
 
Public Procedure AddTag(Const aTags:String); Virtual;

O Método AddTag receber um string no formato name=value separado por ponto e vígula.

  • PARÂMETRO

    • aTags := Contém a string de pares de valores para a lista de strings

      • Exemplo:

        • aTags := 'name1="value1";name2="value2"; ... ;nameN="valueN"';

Public class procedure testTags1;
 
Public Procedure AddTagValue(Const aTagValues:String); Virtual;

O Método AddTagValue receber um string no formato name=value separado por vígula.

  • PARÂMETRO

    • aTags := Contém a string de pares de valores para a lista de strings

      • Exemplo:

        • aTagValues := "value1","value2",..,"valueN"';

Public class procedure testTags2;
 
Public constructor Create(Const aTags:String); overload; virtual;

O constructor Create receber um string no formato name=value separado por ponto e vígula e cria a lista de name e value.

Public constructor Create(ALimit: longint;AOrdem:Boolean ); overload; virtual;
 
Public Function ClearKey: Boolean;
 
Public procedure Clear; override;
 
Public function IndexOf(const S: string): Integer; override;

Redefini porque a instância anterior não funciona com caractere #254

Public procedure Delete(Index: Integer); override;

Redefini para poder deletar o objeto associando

Public destructor Destroy; override;
 
Public function Find(const S: string; Out Index: Integer): Boolean; override;
 
Public Function FindKey(WKey:String):Boolean;
 
Public Function NextKey: Boolean;
 
Public Function getRec(aNRec:PtrInt):PtrInt; virtual; overload;
 
Public Function SearchKey(WKey:String):Boolean;
 
Public Function NewStr(S : String):Boolean; overload;
 
Public Function Append(S : String):Boolean;
 
Public procedure AddSItem(P : TConsts.PSItem; ConvertIdioma : TConsts.TConvertIdioma; OkDisposeSItems:Boolean); Overload;
 
Public procedure AddSItem(P : TConsts.PSItem); Overload;

Adiciona a lista passada por aSItem e desaloca a lista se OkDisposeSItems = true;

Public Function CloneSItems(Const Items: TConsts.PSItem):TConsts.PSItem;
 
Public Function CopyTemplateFrom(Const aTemplate:TConsts.tString): TConsts.tString;
 
Public Function PListSItem: TConsts.PSItem;
 

Propriedades

Public property KeyMaster : String Read _KeyMaster Write SetKeyMaster;
 
Public property OkDestroy_Object : Boolean Write _OkDestroy_Object;

Redefini para poder deletar o objeto associando


Gerado por PasDoc 0.16.0.