Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

stSecStr

Classes, interfaces and records

recordtStringItem

fString: tRtlString; fObject: TObject;

classtSecureStrings

(no public members)

classtSecureStrings

inherits from TStrings

destructor Destroy; override; function Add(const S: tRtlString): Integer; override; procedure Clear; override; procedure Delete(Index: Integer); override; procedure Exchange(Index1, Index2: Integer); override; function Find(const S: tRtlString; var Index: Integer): Boolean; virtual; function IndexOf(const S: tRtlString): Integer; override; procedure Insert(Index: Integer; const S: tRtlString); override; procedure Sort; virtual; procedure CustomSort(Compare: TSecureStringListSortCompare); virtual; property BinarySort: Boolean read fBinarySort write fBinarySort; property Duplicates: tDuplicates read fDuplicates write FDuplicates; property NoClear: Boolean read fNoClear write fNoClear; property Sorted: Boolean read fSorted write SetSorted; property OnChange: tNotifyEvent read fOnChange write FOnChange; property OnChanging: tNotifyEvent read fOnChanging write FOnChanging;

recordtOctetStringItem

fString: OctetString; fObject: TObject;

classtOctetStrings

(no public members)

classtOctetStrings

destructor Destroy; override; function Add(const S: OctetString): Integer; procedure Clear; procedure Delete(Index: Integer); procedure Exchange(Index1, Index2: Integer); function Find(const S: OctetString; var Index: Integer): Boolean; virtual; function IndexOf(const S: OctetString): Integer; procedure Insert(Index: Integer; const S: OctetString); procedure Sort; virtual; procedure CustomSort(Compare: TOctetStringListSortCompare); virtual; property Count: Integer read GetCount; property Duplicates: tDuplicates read fDuplicates write fDuplicates; property Strings[Index: Integer]: OctetString read Get write Put; default; property NoClear: Boolean read fNoClear write fNoClear; property Sorted: Boolean read fSorted write SetSorted; property OnChange: tNotifyEvent read fOnChange write FOnChange; property OnChanging: tNotifyEvent read fOnChanging write FOnChanging; property Text: OctetString read GetText write SetTextStr;

classtAnsiStringList

inherits from tOctetStrings

function Add(const S: AnsiString): Integer;
Returns the result of the inherited method.
procedure SaveToStream(Stream: TStream); property CommaText: AnsiString read GetCommaText write SetCommaText; property Strings[Index: Integer]: AnsiString read GetAS write PutAS; default;

classtAnsiStringTree

(no public members)

recordtAnsiStringTreeItem

fID: AnsiString; fData: AnsiString; fChildren: tAnsiStringTree;

classtAnsiStringTree

destructor Destroy; override; function Add(const aID, aData: AnsiString): Integer; procedure Clear; procedure Delete(Index: Integer); function Find(const aID: AnsiString; var Index: Integer): Boolean; virtual; function IndexOfID(const aID: AnsiString): Integer; function HasChildren(aIndex: Integer): Boolean; property Count: Integer read GetCount; property ID[Index: Integer]: AnsiString read GetID; default; property DataByIndex[Index: Integer]: AnsiString read GetDataByIndex write PutDataByIndex; property Data[aID: AnsiString]: AnsiString read GetData write PutData; property Children[Index: Integer]: tAnsiStringTree read GetChildren;

recordtIdentifiedInterfaceRecord

ID: OctetString; Intf: IInterface;

interfaceiIdentifiedInterfaceList

function GetCount: Integer; function Get(aIndex: Integer): OctetString; function GetObjects(aIndex: Integer): IInterface; procedure SetObjects(aIndex: Integer; const aValue: IInterface); procedure SetSorted(const Value: Boolean); procedure SetDuplicates(const aValue: tDuplicates); function Find(const aID: OctetString; var aIndex: Integer): Boolean; overload; function Find(const aID : OctetString; const aObject: IInterface; var aIndex : Integer) : Boolean; overload; function IndexOf(const aID: OctetString): Integer; function AddObject(const aID : OctetString; const aObject: IInterface) : Integer; procedure Exchange(Index1, Index2: Integer); function InsertObject(aIndex : Integer; const aID : OctetString; const aObject: IInterface) : Integer; property Count: Integer read GetCount; property Objects[aIndex: Integer]: IInterface read GetObjects write SetObjects; property IDs[aIndex: Integer]: OctetString read Get; default;

classtIdentifiedInterfaceList

inherits from TInterfacedObject

implements iIdentifiedInterfaceList

destructor Destroy; override; procedure Clear; procedure Delete(aIndex: Integer); function Find(const aID: OctetString; var aIndex: Integer): Boolean; overload; function Find(const aID : OctetString; const aObject: IInterface; var aIndex : Integer) : Boolean; overload; function IndexOf(const aID: OctetString): Integer; procedure Sort; function AddObject(const aID : OctetString; const aObject: IInterface) : Integer; procedure Exchange(Index1, Index2: Integer); function InsertObject(aIndex : Integer; const aID : OctetString; const aObject: IInterface) : Integer; property Count: Integer read GetCount; property Duplicates: tDuplicates read fDuplicates write SetDuplicates; property Objects[aIndex: Integer]: IInterface read GetObjects write SetObjects; property Sorted: Boolean read fSorted write SetSorted; property IDs[aIndex: Integer]: OctetString read Get; default; property OnCompareEqual: tCompareEqualEvent read fOnCompareEqual write SetOnCompareEqual;

recordtStringInterfaceRecord

Name: string; Intf: IInterface;

interfaceiStringInterfaceList

function GetCount: Integer; function Get(aIndex: Integer): string; function GetObjects(aIndex: Integer): IInterface; procedure SetObjects(aIndex: Integer; const aValue: IInterface); function GetCommaText: string; procedure SetCommaText(const Value: string); procedure SetSorted(const Value: Boolean); procedure SetDuplicates(const aValue: tDuplicates); function Find(const aStr: string; var aIndex: Integer): Boolean; overload; function Find(const aStr : string; const aObject: IInterface; var aIndex : Integer) : Boolean; overload; function IndexOf(const aStr: string): Integer; function AddObject(const aStr : string; const aObject: IInterface) : Integer; procedure Exchange(Index1, Index2: Integer); function InsertObject(aIndex : Integer; const aStr : string; const aObject: IInterface) : Integer; property CommaText: string read GetCommaText write SetCommaText; property Count: Integer read GetCount; property Objects[aIndex: Integer]: IInterface read GetObjects write SetObjects; property Strings[aIndex: Integer]: string read Get; default;

classtStringInterfaceList

inherits from TInterfacedObject

implements iStringInterfaceList

destructor Destroy; override; procedure Clear; procedure Delete(aIndex: Integer); function Find(const aStr: string; var aIndex: Integer): Boolean; overload; function Find(const aStr : string; const aObject: IInterface; var aIndex : Integer) : Boolean; overload; function IndexOf(const aStr: string): Integer; procedure Sort; function AddObject(const aStr : string; const aObject: IInterface) : Integer; procedure Exchange(Index1, Index2: Integer); function InsertObject(aIndex : Integer; const aStr : string; const aObject: IInterface) : Integer; property BaseInterface: TGUID read fBaseInterface write SetBaseInterface; property CommaText: string read GetCommaText write SetCommaText; property Count: Integer read GetCount; property Duplicates: tDuplicates read fDuplicates write SetDuplicates; property Objects[aIndex: Integer]: IInterface read GetObjects write SetObjects; property Sorted: Boolean read fSorted write SetSorted; property Strings[aIndex: Integer]: string read Get; default; property OnCompareEqual: tCompareEqualEvent2 read fOnCompareEqual write SetOnCompareEqual;

Types (enumerations, sets, aliases)

typetRtlChar

FPC's FCL (TStrings and descendants) is AnsiString-based even in DelphiUnicode mode, so the FCL-facing string overrides - and the wiped item storage behind them - must follow the RTL string type, or the Get/Put/Add/IndexOf/Insert overrides will not match their base class. Under Delphi both aliases are the native (Unicode) string/Char.

  tRtlChar = {$IFDEF FPC}AnsiChar{$ELSE}Char{$ENDIF};

typetRtlString

  tRtlString = {$IFDEF FPC}AnsiString{$ELSE}string{$ENDIF};

typepStringItem

  pStringItem = ^tStringItem;

typepStringItemList

  pStringItemList = ^tStringItemList;

arraytStringItemList

  tStringItemList = array[0..MaxListSize] of tStringItem;

proctSecureStringListSortCompare

  tSecureStringListSortCompare = function(List: tSecureStrings; Index1, Index2: Integer): Integer;

typepOctetStringItem

  pOctetStringItem = ^tOctetStringItem;

typepOctetStringItemList

  pOctetStringItemList = ^tOctetStringItemList;

arraytOctetStringItemList

  tOctetStringItemList = array[0..MaxListSize] of tOctetStringItem;

proctOctetStringListSortCompare

  tOctetStringListSortCompare = function(List: tOctetStrings; Index1, Index2: Integer): Integer;

typepAnsiStringTreeItem

  pAnsiStringTreeItem = ^tAnsiStringTreeItem;

typepAnsiStringTreeItemList

  pAnsiStringTreeItemList = ^tAnsiStringTreeItemList;

arraytAnsiStringTreeItemList

  tAnsiStringTreeItemList = array[0..MaxListSize] of tAnsiStringTreeItem;

arraytIdentifiedInterfaceArray

  tIdentifiedInterfaceArray = array of tIdentifiedInterfaceRecord;

proctCompareEqualEvent

  tCompareEqualEvent = procedure (Sender : TObject;
                            const aID    : OctetString;
                            const aObj1  : IInterface;
                            const aObj2  : IInterface;
                              var aCmpRes: Integer) of object;

arraytStringInterfaceArray

  tStringInterfaceArray = array of tStringInterfaceRecord;

proctCompareEqualEvent2

  tCompareEqualEvent2 = procedure (Sender : TObject;
                             const aString: string;
                             const aObj1  : IInterface;
                             const aObj2  : IInterface;
                               var aCmpRes: Integer) of object;