OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    StepFile_Read.hxx File Reference
    #include <Standard_CString.hxx>
    #include <Standard_Type.hxx>
    #include <iostream>

    Functions

    void StepFile_Interrupt (const char *theErrorMessage, const bool theIsFail=true)
     Prints the error message.
    int StepFile_Read (const char *theName, std::istream *theIStream, const occ::handle< StepData_StepModel > &theModel, const occ::handle< StepData_Protocol > &theProtocol)
     Working function reading STEP file or stream.

    Function Documentation

    ◆ StepFile_Interrupt()

    void StepFile_Interrupt ( const char * theErrorMessage,
    const bool theIsFail = 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()

    int StepFile_Read ( const char * theName,
    std::istream * theIStream,
    const occ::handle< StepData_StepModel > & theModel,
    const occ::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