973c2be1 |
1 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
2 | // |
973c2be1 |
3 | // This file is part of Open CASCADE Technology software library. |
b311480e |
4 | // |
d5f74e42 |
5 | // This library is free software; you can redistribute it and/or modify it under |
6 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
7 | // by the Free Software Foundation, with special exception defined in the file |
8 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
9 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
10 | // |
973c2be1 |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
b311480e |
13 | |
42cf5bc1 |
14 | |
15 | #include <IGESData_IGESEntity.hxx> |
16 | #include <IGESData_IGESReaderData.hxx> |
7fd59977 |
17 | #include <IGESData_IGESType.hxx> |
42cf5bc1 |
18 | #include <IGESData_IGESWriter.hxx> |
19 | #include <IGESData_ParamReader.hxx> |
20 | #include <IGESData_ReadWriteModule.hxx> |
21 | #include <Interface_Check.hxx> |
22 | #include <Interface_FileReaderData.hxx> |
7fd59977 |
23 | #include <Interface_Macros.hxx> |
42cf5bc1 |
24 | #include <Standard_DomainError.hxx> |
25 | #include <Standard_Transient.hxx> |
26 | #include <Standard_Type.hxx> |
7fd59977 |
27 | |
92efcf78 |
28 | IMPLEMENT_STANDARD_RTTIEXT(IGESData_ReadWriteModule,Interface_ReaderModule) |
29 | |
7fd59977 |
30 | Standard_Integer IGESData_ReadWriteModule::CaseNum |
31 | (const Handle(Interface_FileReaderData)& data, |
32 | const Standard_Integer num) const |
33 | { |
34 | IGESData_IGESType DT = GetCasted(IGESData_IGESReaderData,data)->DirType(num); |
35 | return CaseIGES (DT.Type() , DT.Form()); |
36 | } |
37 | |
38 | |
39 | void IGESData_ReadWriteModule::Read |
40 | (const Standard_Integer , |
41 | const Handle(Interface_FileReaderData)& , const Standard_Integer , |
42 | Handle(Interface_Check)& , const Handle(Standard_Transient)& ) const |
43 | { |
0797d9d3 |
44 | #ifdef OCCT_DEBUG |
04232180 |
45 | std::cout<<"IGESData_ReadWriteModule, Read called"<<std::endl; |
7fd59977 |
46 | #endif |
47 | } |
48 | // IGESReaderTool fait tout |