Class TLineStream (unit mwLineStream)

Inherits from

TFileStream

Constructors


constructor create(Const FileName: string; Mode: Word);

TLineStream


Functions

destructor destroy;

create

procedure FillMemory;

SetMaxMemorySize

procedure FlushMemory;

GetActualWritePos

function ReadLine: PChar;

GetMemoryFull

procedure Reset;

FlushMemory

procedure WriteLine(NewLine: String);

GetActualLineReadPos

function GetActualLineReadPos: LongInt;

GetActualReadPos

function GetActualReadPos: LongInt;

ReadLine

function GetActualWritePos: LongInt;

WriteLine

function GetFileEof: Boolean;

destroy

function GetMemoryFull: Boolean;

FillMemory

procedure SetMaxMemorySize(NewValue: Longint);

GetFileEof

Properties

property ActualLineReadPos : LongInt


property ActualReadPos : LongInt


property ActualWritePos : LongInt


property Eof : Boolean


property FileEof : Boolean


property MaxMemorySize : Longint


property Memory : PChar


property MemoryFull : Boolean


Events

Variables

fEof : Boolean;


fLineStart : LongInt;


fMaxMemorySize : Longint;


fMemory : PChar;


fMemoryPos : LongInt;


fMemorySize : LongInt;



Constructors


constructor create(Const FileName: string; Mode: Word);

TLineStream


Functions


destructor destroy;

create


procedure FillMemory;

SetMaxMemorySize


procedure FlushMemory;

GetActualWritePos


function ReadLine: PChar;

GetMemoryFull


procedure Reset;

FlushMemory


procedure WriteLine(NewLine: String);

GetActualLineReadPos


function GetActualLineReadPos: LongInt;

GetActualReadPos


function GetActualReadPos: LongInt;

ReadLine


function GetActualWritePos: LongInt;

WriteLine


function GetFileEof: Boolean;

destroy


function GetMemoryFull: Boolean;

FillMemory


procedure SetMaxMemorySize(NewValue: Longint);

GetFileEof


Properties


property ActualLineReadPos : LongInt


property ActualReadPos : LongInt


property ActualWritePos : LongInt


property Eof : Boolean


property FileEof : Boolean


property MaxMemorySize : Longint


property Memory : PChar


property MemoryFull : Boolean


Events


Variables


fEof : Boolean;


fLineStart : LongInt;


fMaxMemorySize : Longint;


fMemory : PChar;


fMemoryPos : LongInt;


fMemorySize : LongInt;