0025418: Debug output to be limited to OCC development environment
[occt.git] / src / StepData / StepData_ReadWriteModule.cxx
CommitLineData
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
7fd59977 14#include <StepData_ReadWriteModule.ixx>
15#include <StepData_StepReaderData.hxx>
16#include <Interface_Macros.hxx>
17
18
19
b311480e 20Standard_Integer StepData_ReadWriteModule::CaseNum
7fd59977 21 (const Handle(Interface_FileReaderData)& data,
22 const Standard_Integer num) const
23{
24 DeclareAndCast(StepData_StepReaderData,stepdat,data);
25 if (stepdat.IsNull()) return 0;
26 if (stepdat->IsComplex(num)) {
27 TColStd_SequenceOfAsciiString types;
28 stepdat->ComplexType (num,types);
29 if (types.IsEmpty()) return 0;
30 if (types.Length() == 1) return CaseStep (types.Value(1));
31 else return CaseStep (types);
32 }
33 return CaseStep (stepdat->RecordType(num));
34}
35
35e08fe8 36Standard_Integer StepData_ReadWriteModule::CaseStep (const TColStd_SequenceOfAsciiString&) const
37{
38 return 0;
39} // par defaut
7fd59977 40
35e08fe8 41Standard_Boolean StepData_ReadWriteModule::IsComplex (const Standard_Integer) const
42{
43 return Standard_False;
44} // par defaut
7fd59977 45
35e08fe8 46TCollection_AsciiString StepData_ReadWriteModule::ShortType (const Standard_Integer ) const
47{
48 return TCollection_AsciiString("");
49} // par defaut vide
7fd59977 50
35e08fe8 51Standard_Boolean StepData_ReadWriteModule::ComplexType (const Standard_Integer ,
52 TColStd_SequenceOfAsciiString& ) const
53{
54 return Standard_False;
55}
7fd59977 56
57
58//=======================================================================
59//function : Read
60//purpose :
61//=======================================================================
62
63void StepData_ReadWriteModule::Read(const Standard_Integer CN,
64 const Handle(Interface_FileReaderData)& data,
65 const Standard_Integer num,
66 Handle(Interface_Check)& ach,
67 const Handle(Standard_Transient)& ent) const
68{
69 DeclareAndCast(StepData_StepReaderData,stepdat,data);
70 if (stepdat.IsNull()) return;
71 ReadStep (CN,stepdat,num,ach,ent);
72}