Open CASCADE Technology  7.6.0
Public Member Functions

StepFile_ReadData Class Reference

#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...
 

Constructor & Destructor Documentation

◆ StepFile_ReadData()

StepFile_ReadData::StepFile_ReadData ( )

List of errors messages, contains all errors.

Constructs an uninitialized tool

◆ ~StepFile_ReadData()

StepFile_ReadData::~StepFile_ReadData ( )
inline

Destructor cleans allocated memory of all fields.

Member Function Documentation

◆ AddError()

void StepFile_ReadData::AddError ( Standard_CString  theErrorMessage)

Adds an error message.

◆ AddNewScope()

void StepFile_ReadData::AddNewScope ( )

Creates a new scope, containing the current record.

◆ ClearRecorder()

void StepFile_ReadData::ClearRecorder ( const Standard_Integer  theMode)

Releases memory.

Parameters
theMode
  • 1 - clear pages of records and arguments
  • 2 - clear pages of characters
  • 3 - clear all data

◆ CreateErrorArg()

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.

◆ CreateNewArg()

void StepFile_ReadData::CreateNewArg ( )

Prepares new arguments. Type and value already known. If arguments page is full, allocates a new page.

◆ CreateNewText()

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.

◆ ErrorHandle()

Standard_Boolean StepFile_ReadData::ErrorHandle ( const Handle< Interface_Check > &  theCheck) const

Transfers error messages to checker.

◆ FinalOfHead()

void StepFile_ReadData::FinalOfHead ( )

Prepares the end of the head section.

◆ FinalOfScope()

void StepFile_ReadData::FinalOfScope ( )

Ends the scope.

◆ GetArgDescription()

Standard_Boolean StepFile_ReadData::GetArgDescription ( Interface_ParamType theType,
char **  theValue 
)

Returns a value of fields of current argument.

◆ GetFileNbR()

void StepFile_ReadData::GetFileNbR ( Standard_Integer theNbHead,
Standard_Integer theNbRec,
Standard_Integer theNbPage 
)

Returns a value of all file counters.

◆ GetLastError()

Standard_CString StepFile_ReadData::GetLastError ( ) const

Returns the message of the last error.

◆ GetModePrint()

Standard_Integer StepFile_ReadData::GetModePrint ( ) const

Returns mode print.

◆ GetNbRecord()

Standard_Integer StepFile_ReadData::GetNbRecord ( ) const

Returns number of records.

◆ GetRecordDescription()

Standard_Boolean StepFile_ReadData::GetRecordDescription ( char **  theIdent,
char **  theType,
int *  theNbArg 
)

Returns a value of fields of current record.

◆ NextRecord()

void StepFile_ReadData::NextRecord ( )

Skips to next record.

◆ PrepareNewArg()

void StepFile_ReadData::PrepareNewArg ( )

Controls the correct argument count for the record. Resets error argyment mode.

◆ PrintCurrentRecord()

void StepFile_ReadData::PrintCurrentRecord ( )

Prints data of current record according to the modeprint.

◆ RecordIdent()

void StepFile_ReadData::RecordIdent ( )

Creates a new record and sets Ident from myResText.

◆ RecordListStart()

void StepFile_ReadData::RecordListStart ( )

Prepares and saves a record or sub-record.

◆ RecordNewEntity()

void StepFile_ReadData::RecordNewEntity ( )

Adds the current record to the list.

◆ RecordType()

void StepFile_ReadData::RecordType ( )

Starts reading of the type (entity)

◆ RecordTypeText()

void StepFile_ReadData::RecordTypeText ( )

Initializes the record type with myResText.

◆ SetModePrint()

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.

◆ SetTypeArg()

void StepFile_ReadData::SetTypeArg ( const Interface_ParamType  theArgType)

Sets type of the current argument.


The documentation for this class was generated from the following file: