Open CASCADE Technology  7.6.0
Functions

StepFile_Read.hxx File Reference

#include <iostream>

Functions

void StepFile_Interrupt (Standard_CString theErrorMessage, const Standard_Boolean theIsFail=Standard_True)
 Prints the error message. More...
 
Standard_Integer StepFile_Read (const char *theName, std::istream *theIStream, const Handle< StepData_StepModel > &theModel, const Handle< StepData_Protocol > &theProtocol)
 Working function reading STEP file or stream. More...
 

Function Documentation

◆ StepFile_Interrupt()

void StepFile_Interrupt ( Standard_CString  theErrorMessage,
const Standard_Boolean  theIsFail = Standard_True 
)

Prints the error message.

Parameters
theErrorMessage- error message for output
theFail- if true output as a fail info, else output as a trace info ( log )

◆ StepFile_Read()

Standard_Integer StepFile_Read ( const char *  theName,
std::istream *  theIStream,
const Handle< StepData_StepModel > &  theModel,
const Handle< StepData_Protocol > &  theProtocol 
)

Working function reading STEP file or stream.

Parameters
theName- name of the file or stream
theIStream- pointer to stream to read; if null, file theName will be opened
theModel- STEP model
theProtocol- STEP protocol object
Returns
0 on success, -1 if stream fails, 1 in case of parsing error