/
gmscTextClass
gmscTextClass
Mark Juras
Owned by Mark Juras
The Text Service Class
The service class Text contains those methods needed to manage ordered sequences of variable length text records, numbered from 1 to n. These are referred to as "text streams". The typical retrieval pattern for text streams is that they are first moved to a certain record in the sequence and then a series of records is accessed from there. The algorithm used is optimal for moving forward through a sequence records once a starting location has been established. As such, the general approach differs from those for "normal" sequences in that the notion of a "current record" or "cursor" is used. The sequence is positioned on a record and that current record can then be manipulated. In addition to optimizing the traversal through the records, the approach also optimizes the storage and changing of records. The individual records are stored in fixed sized blocks in long memory. When a record in inserted into the stream or when the size of a record is changed only the block containing the record needs to be repositioned, not the entire stream. Finally, each text record in the stream consists of two parts: a fixed length component called the "record associated information" followed by the remaining text part, simply called the "record". There is no actual requirement within this class that the records being managed be text records. This class simply maintains them as opaque blocks of bytes with individually specified lengths and associated information. The actual implementation code simply refers to the records being managed as variable length records.The method Text_Access
PrototypeUBYTE* Text_Access(void* This,int* nRecord,UBYTE** recai,int Delta)
Parameter | Description |
The method Text_BeforeTop
Prototypeint Text_BeforeTop(void* This)
Parameter | Description |
The method Text_Close
Prototypevoid Text_Close(void* This)
Parameter | Description |
The method Text_Create
Prototypevoid* Text_Create(void* Store,int recsize)
Parameter | Description |
The method Text_Current
Prototypeint Text_Current(void* This)
Parameter | Description |
The method Text_Decrement
Prototypeint Text_Decrement(void* This,int Lines)
Parameter | Description |
The method Text_Delete
Prototypevoid Text_Delete(void* This)
Parameter | Description |
The method Text_Expand
PrototypeUBYTE* Text_Expand(void* This,int len,int off)
Parameter | Description |
The method Text_GetLocation
Prototypeint Text_GetLocation(void* This)
Parameter | Description |
The method Text_Increment
Prototypeint Text_Increment(void* This,int Lines)
Parameter | Description |
The method Text_Insert
Prototypeint Text_Insert(void* This,UBYTE* Record,int length,UBYTE* rai)
Parameter | Description |
The method Text_MatchBlocks
Prototypeint Text_MatchBlocks(void* VarStream,UBYTE* textBlock,int matchFlags,int* firstPos,int* firstLeng)
Parameter | Description |
The method Text_Maximum
Prototypeint Text_Maximum(void* This)
Parameter | Description |
The method Text_Open
Prototypevoid* Text_Open(void* PageSet,int Sequence)
Parameter | Description |
The method Text_Position
Prototypeint Text_Position(void* This,int Sequence)
Parameter | Description |
The method Text_Rewind
Prototypeint Text_Rewind(void* This)
Parameter | Description |
The method Text_SetLocal
Prototypevoid Text_SetLocal(void* This)
Parameter | Description |
Table of Contents
, multiple selections available,
Related content
gmscTextBlockClass
gmscTextBlockClass
More like this
gmscStoreClass
gmscStoreClass
More like this
gmSCSequenceClass
gmSCSequenceClass
More like this
gmslStoreClass
gmslStoreClass
More like this
gmSCPagingSystemClass
gmSCPagingSystemClass
More like this
gmSCDataQueueClass
gmSCDataQueueClass
More like this