Open CASCADE Technology  7.7.0

StepFile_Read.hxx File Reference

#include <Standard_CString.hxx>
#include <Standard_Type.hxx>
#include <iostream>


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.

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.

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
0 on success, -1 if stream fails, 1 in case of parsing error