1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
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
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.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
15 #include <IGESData_IGESEntity.hxx>
16 #include <IGESData_IGESReaderData.hxx>
17 #include <IGESData_IGESType.hxx>
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>
23 #include <Interface_Macros.hxx>
24 #include <Standard_DomainError.hxx>
25 #include <Standard_Transient.hxx>
26 #include <Standard_Type.hxx>
28 IMPLEMENT_STANDARD_RTTIEXT(IGESData_ReadWriteModule,Interface_ReaderModule)
30 Standard_Integer IGESData_ReadWriteModule::CaseNum
31 (const Handle(Interface_FileReaderData)& data,
32 const Standard_Integer num) const
34 IGESData_IGESType DT = GetCasted(IGESData_IGESReaderData,data)->DirType(num);
35 return CaseIGES (DT.Type() , DT.Form());
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
45 std::cout<<"IGESData_ReadWriteModule, Read called"<<std::endl;
48 // IGESReaderTool fait tout