class STStringList

Simple string list. More...

Definition#include <STStringList.h>
InheritsSTList [public ], STObjectController [public ]
Inherited bySTSuperIni
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members


Detailed Description

String list.

int DiskIOBufferSize

DiskIOBufferSize

QString ReturnString

ReturnString

 STStringList ()

STStringList

 ~STStringList ()

~STStringList

QString  Item (int Index)

Item

Returns a string in the list.

Reimplemented from STList.

void  Clear ()

Clear

Removes all items from the list.

Reimplemented from STList.

unsigned int  Remove (int IndexToRemove)

Remove

Removes a string from the list. As a bonus it also returns the count after the string has been removed. As named after the Qt prefered name remove.

unsigned int  Replace (QString &NewString, int Index)

Replace

Replaces an existing string with a new one at the location of index.

unsigned int  Delete (int IndexToRemove)

Delete

Removes a string from the list. As a bonus it also returns the count after the string has been removed. As named after the Delphi prefered name Delete.

Reimplemented from STList.

unsigned int  Add (QString &NewStringToAdd)

Add

Appends a string to the list. As a bonus it also returns the count after the new string has been added.

Reimplemented from STList.

unsigned int  Add (const char *NewStringToAdd)

Add

Reimplemented from STList.

void  LoadFromFile (QString &FilePathAndName)

LoadFromFile

Read a text file in to the string list. All previous data in the list is lost.

void  LoadFromFile (const char *FilePathAndName)

LoadFromFile

void  SaveToFile (QString &FilePathAndName)

SaveToFile

Saves the contents of the string list to a text file. All previos contents of the text file is lost.

void  SaveToFile (const char *FilePathAndName)

SaveToFile

void  StartFractalAddSaving (QString &FilePathAndName)

StartFractalAddSaving

For faster saving of large lists, this will save to the list as you add to it and not buffer to swap memory. This is great for large lists like 100 MB text files that I have tried when my memory is 100% and the rest is in swap. After activating this you should only add to the list, do not attempt any other list actions. When done adding use DoneFractalAddSaving to return list to normal operations. This list will be empty, you will have to load it to use it again. If you planned on using the list when done you should not use this feature as it will only save you speed if you intend on writing a text file and then being finished with the list.

void  StartFractalAddSaving (const char *FilePathAndName)

StartFractalAddSaving

void  DoneFractalAddSaving ()

DoneFractalAddSaving

Use this to tell terminal the FractalAddSaving and return the list to normal operations. The list will be completley empty after calling this.


Generated by: root on UtopiaPlanitia.Ept on Mon Dec 10 22:55:12 2001, using kdoc 2.0a53.