Open CASCADE Technology 7.8.0
Public Member Functions
StepFile_ReadData Class Reference

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

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: