0027960: Configuration - fix compilation of OSD_Directory with MinGW-w64
[occt.git] / src / StepFile / StepFile_Read.hxx
CommitLineData
b311480e 1// Created on: 1991-08-30
2// Created by: Christian CAILLET
3// Copyright (c) 1991-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
17// StepFile_Read.hxx
18
19// routine assurant l'enchainement des operations de lecture d'un fichier
20// STEP dans un StepModel, en fonction d'une cle de reconnaissance
21// Retour de la fonction :
22// 0 si OK (le StepModel a ete charge)
23// -1 si abandon car fichier pas pu etre ouvert
24// 1 si erreur en cours de lecture
25
26
27#ifndef StepFile_Read_HeaderFile
28#define StepFile_Read_HeaderFile
29
30//# include <stepread.h> : sauf recfile_modeprint, declare ici
31# include <StepData_StepModel.hxx>
32# include <StepData_FileRecognizer.hxx>
33# include <StepData_Protocol.hxx>
34
35
36Standard_EXPORT void StepFile_ReadTrace (const Standard_Integer mode);
37// Modal : 0 pas de trace, 1 trace LoadModel, 2 & 3 + trace interne lex-yac
38
39Standard_EXPORT Standard_Integer StepFile_Read
40 (char* nomfic,
41 const Handle(StepData_StepModel)& stepmodel,
42 const Handle(StepData_FileRecognizer)& recoheader, // Reconnait le Header
43 const Handle(StepData_FileRecognizer)& recodata); // Entites du Data
44
45Standard_EXPORT Standard_Integer StepFile_Read
46 (char* nomfic,
47 const Handle(StepData_StepModel)& stepmodel,
48 const Handle(StepData_FileRecognizer)& recoheader, // Reconnait le Header
49 const Handle(StepData_Protocol)& protocol); // Entites du Data
50
51Standard_EXPORT Standard_Integer StepFile_Read
52 (char* nomfic,
53 const Handle(StepData_StepModel)& stepmodel,
54 const Handle(StepData_Protocol)& protocol); // Header & Data
55
56#endif