mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-12 18:29:35 +08:00
0027342: STEP - support C++ streams for import / export
- STEP low-level parser is converted to C++; required minimal version of flex is elevated to 2.5.37. - Added possibility to import STEP from stream, see new method XSControl_Reader::ReadStream() (now implemented in STEP only). - Parsers ported to win_flex_bison 2.5.23 (flex 2.6.4, bison 3.7.1) - Added support of C++ flex and bison scanners in in CMake scripts - Some code clean-up in StepFile and around (unused files and functions are eliminated) - Option to read from stream is added in DRAW command testreadstep for testing ReadStream() function - Added test bugs step bug27342
This commit is contained in:
@@ -27,30 +27,24 @@
|
||||
#ifndef StepFile_Read_HeaderFile
|
||||
#define StepFile_Read_HeaderFile
|
||||
|
||||
#include <iostream>
|
||||
//# include <stepread.h> : sauf recfile_modeprint, declare ici
|
||||
# include <StepData_StepModel.hxx>
|
||||
# include <StepData_FileRecognizer.hxx>
|
||||
# include <StepData_Protocol.hxx>
|
||||
|
||||
|
||||
Standard_EXPORT void StepFile_ReadTrace (const Standard_Integer mode);
|
||||
// Modal : 0 pas de trace, 1 trace LoadModel, 2 & 3 + trace interne lex-yac
|
||||
|
||||
Standard_EXPORT Standard_Integer StepFile_Read
|
||||
(char* nomfic,
|
||||
const Handle(StepData_StepModel)& stepmodel,
|
||||
const Handle(StepData_FileRecognizer)& recoheader, // Reconnait le Header
|
||||
const Handle(StepData_FileRecognizer)& recodata); // Entites du Data
|
||||
|
||||
Standard_EXPORT Standard_Integer StepFile_Read
|
||||
(char* nomfic,
|
||||
const Handle(StepData_StepModel)& stepmodel,
|
||||
const Handle(StepData_FileRecognizer)& recoheader, // Reconnait le Header
|
||||
const Handle(StepData_Protocol)& protocol); // Entites du Data
|
||||
|
||||
Standard_EXPORT Standard_Integer StepFile_Read
|
||||
(char* nomfic,
|
||||
const Handle(StepData_StepModel)& stepmodel,
|
||||
const Handle(StepData_Protocol)& protocol); // Header & Data
|
||||
//! Working function reading STEP file or stream.
|
||||
//! @param theName - name of the file or stream
|
||||
//! @param theIStream - pointer to stream to read; if null, file theName will be opened
|
||||
//! @param theModel - STEP model
|
||||
//! @param theProtocol - STEP protocol object
|
||||
//! @return 0 on success, -1 if stream fails, 1 in case of parsing error
|
||||
Standard_EXPORT Standard_Integer StepFile_Read (const char* theName,
|
||||
std::istream* theIStream,
|
||||
const Handle(StepData_StepModel)& theModel,
|
||||
const Handle(StepData_Protocol)& theProtocol);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user