File indexing completed on 2026-09-16 09:17:31
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IGESData_IGESReaderTool_HeaderFile
0018 #define _IGESData_IGESReaderTool_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Interface_GeneralLib.hxx>
0025 #include <Interface_ReaderLib.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <IGESData_IGESType.hxx>
0028 #include <IGESData_ReadStage.hxx>
0029 #include <Interface_FileReaderTool.hxx>
0030 class Interface_ParamList;
0031 class IGESData_FileRecognizer;
0032 class Interface_Check;
0033 class IGESData_IGESReaderData;
0034 class IGESData_Protocol;
0035 class Standard_Transient;
0036 class Interface_InterfaceModel;
0037 class IGESData_IGESEntity;
0038 class IGESData_DirPart;
0039 class IGESData_ParamReader;
0040
0041
0042
0043 class IGESData_IGESReaderTool : public Interface_FileReaderTool
0044 {
0045 public:
0046 DEFINE_STANDARD_ALLOC
0047
0048
0049
0050
0051 Standard_EXPORT IGESData_IGESReaderTool(const occ::handle<IGESData_IGESReaderData>& reader,
0052 const occ::handle<IGESData_Protocol>& protocol);
0053
0054
0055
0056
0057
0058 Standard_EXPORT void Prepare(const occ::handle<IGESData_FileRecognizer>& reco);
0059
0060
0061 Standard_EXPORT bool Recognize(const int num,
0062 occ::handle<Interface_Check>& ach,
0063 occ::handle<Standard_Transient>& ent) override;
0064
0065
0066 Standard_EXPORT void BeginRead(const occ::handle<Interface_InterfaceModel>& amodel) override;
0067
0068
0069
0070
0071
0072 Standard_EXPORT bool AnalyseRecord(const int num,
0073 const occ::handle<Standard_Transient>& anent,
0074 occ::handle<Interface_Check>& acheck) override;
0075
0076
0077 Standard_EXPORT void EndRead(const occ::handle<Interface_InterfaceModel>& amodel) override;
0078
0079
0080
0081 Standard_EXPORT void ReadDir(const occ::handle<IGESData_IGESEntity>& ent,
0082 const occ::handle<IGESData_IGESReaderData>& IR,
0083 const IGESData_DirPart& DP,
0084 occ::handle<Interface_Check>& ach) const;
0085
0086
0087
0088
0089 Standard_EXPORT void ReadOwnParams(const occ::handle<IGESData_IGESEntity>& ent,
0090 const occ::handle<IGESData_IGESReaderData>& IR,
0091 IGESData_ParamReader& PR) const;
0092
0093
0094
0095
0096
0097
0098
0099 Standard_EXPORT void ReadProps(const occ::handle<IGESData_IGESEntity>& ent,
0100 const occ::handle<IGESData_IGESReaderData>& IR,
0101 IGESData_ParamReader& PR) const;
0102
0103
0104
0105
0106
0107
0108
0109 Standard_EXPORT void ReadAssocs(const occ::handle<IGESData_IGESEntity>& ent,
0110 const occ::handle<IGESData_IGESReaderData>& IR,
0111 IGESData_ParamReader& PR) const;
0112
0113 private:
0114 occ::handle<Interface_ParamList> thelist;
0115 occ::handle<IGESData_FileRecognizer> thereco;
0116 Interface_GeneralLib theglib;
0117 Interface_ReaderLib therlib;
0118 int thecnum;
0119 IGESData_IGESType thectyp;
0120 IGESData_ReadStage thestep;
0121 occ::handle<Interface_Check> thechk;
0122 int thegradweight;
0123 double themaxweight;
0124 double thedefweight;
0125 };
0126
0127 #endif