Open CASCADE Technology 7.8.0
|
#include <StepFile_ReadData.hxx>
Public Member Functions | |
StepFile_ReadData () | |
List of errors messages, contains all errors. | |
~StepFile_ReadData () | |
Destructor cleans allocated memory of all fields. | |
void | CreateNewText (const char *theNewText, int theLenText) |
Preperes 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. | |
void | RecordNewEntity () |
Adds the current record to the list. | |
void | RecordIdent () |
Creates a new record and sets Ident from myResText. | |
void | RecordType () |
Starts reading of the type (entity) | |
void | RecordListStart () |
Prepares and saves a record or sub-record. | |
void | CreateNewArg () |
Prepares new arguments. Type and value already known. If arguments page is full, allocates a new page. | |
void | CreateErrorArg () |
Prepares error arguments, controls count of error arguments. If bison handles a sequence of error types, creates only one argument and updates text value. | |
void | AddNewScope () |
Creates a new scope, containing the current record. | |
void | FinalOfScope () |
Ends the scope. | |
void | ClearRecorder (const Standard_Integer theMode) |
Releases memory. | |
Standard_Boolean | GetArgDescription (Interface_ParamType *theType, char **theValue) |
Returns a value of fields of current argument. | |
void | GetFileNbR (Standard_Integer *theNbHead, Standard_Integer *theNbRec, Standard_Integer *theNbPage) |
Returns a value of all file counters. | |
Standard_Boolean | GetRecordDescription (char **theIdent, char **theType, int *theNbArg) |
Returns a value of fields of current record. | |
void | RecordTypeText () |
Initializes the record type with myResText. | |
void | NextRecord () |
Skips to next record. | |
void | PrintCurrentRecord () |
Prints data of current record according to the modeprint. | |
void | PrepareNewArg () |
Controls the correct argument count for the record. Resets error argyment mode. | |
void | FinalOfHead () |
Prepares the end of the head section. | |
void | SetTypeArg (const Interface_ParamType theArgType) |
Sets type of the current argument. | |
void | SetModePrint (const Standard_Integer theMode) |
Initializes the print mode 0 - don't print descriptions 1 - print only descriptions of record 2 - print descriptions of records and its arguments. | |
Standard_Integer | GetModePrint () const |
Returns mode print. | |
Standard_Integer | GetNbRecord () const |
Returns number of records. | |
void | AddError (Standard_CString theErrorMessage) |
Adds an error message. | |
Standard_Boolean | ErrorHandle (const Handle< Interface_Check > &theCheck) const |
Transfers error messages to checker. | |
Standard_CString | GetLastError () const |
Returns the message of the last error. | |
StepFile_ReadData::StepFile_ReadData | ( | ) |
List of errors messages, contains all errors.
Constructs an uninitialized tool
|
inline |
Destructor cleans allocated memory of all fields.
void StepFile_ReadData::AddError | ( | Standard_CString | theErrorMessage | ) |
Adds an error message.
void StepFile_ReadData::AddNewScope | ( | ) |
Creates a new scope, containing the current record.
void StepFile_ReadData::ClearRecorder | ( | const Standard_Integer | theMode | ) |
Releases memory.
theMode |
|
void StepFile_ReadData::CreateErrorArg | ( | ) |
Prepares error arguments, controls count of error arguments. If bison handles a sequence of error types, creates only one argument and updates text value.
void StepFile_ReadData::CreateNewArg | ( | ) |
Prepares new arguments. Type and value already known. If arguments page is full, allocates a new page.
Preperes 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.
Standard_Boolean StepFile_ReadData::ErrorHandle | ( | const Handle< Interface_Check > & | theCheck | ) | const |
Transfers error messages to checker.
void StepFile_ReadData::FinalOfHead | ( | ) |
Prepares the end of the head section.
void StepFile_ReadData::FinalOfScope | ( | ) |
Ends the scope.
Standard_Boolean StepFile_ReadData::GetArgDescription | ( | Interface_ParamType * | theType, |
char ** | theValue | ||
) |
Returns a value of fields of current argument.
void StepFile_ReadData::GetFileNbR | ( | Standard_Integer * | theNbHead, |
Standard_Integer * | theNbRec, | ||
Standard_Integer * | theNbPage | ||
) |
Returns a value of all file counters.
Standard_CString StepFile_ReadData::GetLastError | ( | ) | const |
Returns the message of the last error.
Standard_Integer StepFile_ReadData::GetModePrint | ( | ) | const |
Returns mode print.
Standard_Integer StepFile_ReadData::GetNbRecord | ( | ) | const |
Returns number of records.
Standard_Boolean StepFile_ReadData::GetRecordDescription | ( | char ** | theIdent, |
char ** | theType, | ||
int * | theNbArg | ||
) |
Returns a value of fields of current record.
void StepFile_ReadData::NextRecord | ( | ) |
Skips to next record.
void StepFile_ReadData::PrepareNewArg | ( | ) |
Controls the correct argument count for the record. Resets error argyment mode.
void StepFile_ReadData::PrintCurrentRecord | ( | ) |
Prints data of current record according to the modeprint.
void StepFile_ReadData::RecordIdent | ( | ) |
Creates a new record and sets Ident from myResText.
void StepFile_ReadData::RecordListStart | ( | ) |
Prepares and saves a record or sub-record.
void StepFile_ReadData::RecordNewEntity | ( | ) |
Adds the current record to the list.
void StepFile_ReadData::RecordType | ( | ) |
Starts reading of the type (entity)
void StepFile_ReadData::RecordTypeText | ( | ) |
Initializes the record type with myResText.
void StepFile_ReadData::SetModePrint | ( | const Standard_Integer | theMode | ) |
Initializes the print mode 0 - don't print descriptions 1 - print only descriptions of record 2 - print descriptions of records and its arguments.
void StepFile_ReadData::SetTypeArg | ( | const Interface_ParamType | theArgType | ) |
Sets type of the current argument.