StepFile
OCCT package StepFile: StepFile_ReadData.
StepFile_ReadData
Constructors(1)
List of errors messages, contains all errors.
Constructs an uninitialized tool
Instance methods(25)
- CreateNewText(theNewText: string, theLenText: number): void
Prepares the text value for analysis. It is the main tool for transferring data from flex to bison If characters page is full, allocates a new page.
Parameters (2)theNewTexttheLenText
- RecordNewEntity(): void
Adds the current record to the list.
- RecordIdent(): void
Creates a new record and sets Ident from myResText.
- RecordType(): void
Starts reading of the type (entity).
- RecordListStart(): void
Prepares and saves a record or sub-record.
- CreateNewArg(): void
Prepares new arguments. Type and value already known. If arguments page is full, allocates a new page.
- CreateErrorArg(): void
Prepares error arguments, controls count of error arguments. If bison handles a sequence of error types, creates only one argument and updates text value.
- AddNewScope(): void
Creates a new scope, containing the current record.
- FinalOfScope(): void
Ends the scope.
- ClearRecorder(theMode: number): void
Releases memory.
Parameters (1)theMode—1 - clear pages of records and arguments2 - clear pages of characters3 - clear all data
- GetArgDescription(theType: Interface_ParamType, theValue: string): boolean
Returns a value of fields of current argument.
Parameters (2)theTypetheValue
- GetFileNbR(theNbHead: number, theNbRec: number, theNbPage: number): void
Returns a value of all file counters.
Parameters (3)theNbHeadtheNbRectheNbPage
- GetRecordDescription(theIdent: string, theType: string, theNbArg: number): boolean
Returns a value of fields of current record.
Parameters (3)theIdenttheTypetheNbArg
- RecordTypeText(): void
Initializes the record type with myResText.
- NextRecord(): void
Skips to next record.
- PrintCurrentRecord(): void
Prints data of current record according to the modeprint.
- PrepareNewArg(): void
Controls the correct argument count for the record. Resets error argyment mode.
- FinalOfHead(): void
Prepares the end of the head section.
- SetTypeArg(theArgType: Interface_ParamType): void
Sets type of the current argument.
Parameters (1)theArgType
- SetModePrint(theMode: number): void
Initializes the print mode 0 - don't print descriptions 1 - print only descriptions of record 2 - print descriptions of records and its arguments.
Parameters (1)theMode
- GetModePrint(): number
Returns mode print.
- GetNbRecord(): number
Returns number of records.
- AddError(theErrorMessage: string): void
Adds an error message.
Parameters (1)theErrorMessage
- ErrorHandle(theCheck: Interface_Check): boolean
Transfers error messages to checker.
Parameters (1)theCheck
- GetLastError(): string
Returns the message of the last error.