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