Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
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)
 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.
 
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 int theMode)
 Releases memory.
 
bool GetArgDescription (Interface_ParamType *theType, char **theValue)
 Returns a value of fields of current argument.
 
void GetFileNbR (int *theNbHead, int *theNbRec, int *theNbPage)
 Returns a value of all file counters.
 
bool 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 int theMode)
 Initializes the print mode 0 - don't print descriptions 1 - print only descriptions of record 2 - print descriptions of records and its arguments.
 
int GetModePrint () const
 Returns mode print.
 
int GetNbRecord () const
 Returns number of records.
 
void AddError (const char *theErrorMessage)
 Adds an error message.
 
bool ErrorHandle (const occ::handle< Interface_Check > &theCheck) const
 Transfers error messages to checker.
 
const charGetLastError () 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 ( const char * theErrorMessage)

Adds an error message.

◆ AddNewScope()

void StepFile_ReadData::AddNewScope ( )

Creates a new scope, containing the current record.

◆ ClearRecorder()

void StepFile_ReadData::ClearRecorder ( const int 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 )

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.

◆ ErrorHandle()

bool StepFile_ReadData::ErrorHandle ( const occ::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()

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

Returns a value of fields of current argument.

◆ GetFileNbR()

void StepFile_ReadData::GetFileNbR ( int * theNbHead,
int * theNbRec,
int * theNbPage )

Returns a value of all file counters.

◆ GetLastError()

const char * StepFile_ReadData::GetLastError ( ) const

Returns the message of the last error.

◆ GetModePrint()

int StepFile_ReadData::GetModePrint ( ) const

Returns mode print.

◆ GetNbRecord()

int StepFile_ReadData::GetNbRecord ( ) const

Returns number of records.

◆ GetRecordDescription()

bool 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 int 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: