// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _StepData_StepReaderTool_HeaderFile #define _StepData_StepReaderTool_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Handle_StepData_FileRecognizer_HeaderFile #include #endif #ifndef _Interface_GeneralLib_HeaderFile #include #endif #ifndef _Interface_ReaderLib_HeaderFile #include #endif #ifndef _Interface_FileReaderTool_HeaderFile #include #endif #ifndef _Handle_StepData_StepReaderData_HeaderFile #include #endif #ifndef _Handle_StepData_Protocol_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Handle_Interface_Check_HeaderFile #include #endif #ifndef _Handle_Standard_Transient_HeaderFile #include #endif #ifndef _Handle_Interface_InterfaceModel_HeaderFile #include #endif class StepData_FileRecognizer; class StepData_StepReaderData; class StepData_Protocol; class Interface_Check; class Standard_Transient; class Interface_InterfaceModel; //! Specific FileReaderTool for Step; works with FileReaderData
//! provides references evaluation, plus access to litteral data
//! and specific methods defined by FileReaderTool
//! Remarks : works with a ReaderLib to load Entities
class StepData_StepReaderTool : public Interface_FileReaderTool { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! creates StepReaderTool to work with a StepReaderData according
//! to a Step Protocol. Defines the ReaderLib at this time
Standard_EXPORT StepData_StepReaderTool(const Handle(StepData_StepReaderData)& reader,const Handle(StepData_Protocol)& protocol); //! Bounds empty entities to records, uses default Recognition
//! provided by ReaderLib and ReaderModule. Also calls computation
//! of references (SetEntityNumbers from StepReaderData)
//! Works only on data entities (skips header)
//! given False allows to test some internal algorithms
//! which are normally avoided (see also StepReaderData)
Standard_EXPORT void Prepare(const Standard_Boolean optimize = Standard_True) ; //! Bounds empty entities to records, works with a specific
//! FileRecognizer, stored and later used in Recognize
//! Works only on data entities (skips header)
//! Standard_EXPORT void Prepare(const Handle(StepData_FileRecognizer)& reco,const Standard_Boolean optimize = Standard_True) ; //! recognizes records, by asking either ReaderLib (default) or
//! FileRecognizer (if defined) to do so. is to call
//! RecognizeByLib
Standard_EXPORT Standard_Boolean Recognize(const Standard_Integer num,Handle(Interface_Check)& ach,Handle(Standard_Transient)& ent) ; //! bounds empty entities and sub-lists to header records
//! works like Prepare + SetEntityNumbers, but for header
//! (N.B.: in Header, no Ident and no reference)
//! FileRecognizer is to specify Entities which are allowed to be
//! defined in the Header (not every type can be)
Standard_EXPORT void PrepareHeader(const Handle(StepData_FileRecognizer)& reco) ; //! fills model's header; that is, gives to it Header entities
//! and commands their loading. Also fills StepModel's Global
//! Check from StepReaderData's GlobalCheck
Standard_EXPORT void BeginRead(const Handle(Interface_InterfaceModel)& amodel) ; //! fills an entity, given record no; works by using a ReaderLib
//! to load each entity, which must be a Transient
//! Actually, returned value is True if no fail, False else
Standard_EXPORT Standard_Boolean AnalyseRecord(const Standard_Integer num,const Handle(Standard_Transient)& anent,Handle(Interface_Check)& acheck) ; //! Ends file reading after reading all the entities
//! Here, it binds in the model, Idents to Entities (for checks)
Standard_EXPORT virtual void EndRead(const Handle(Interface_InterfaceModel)& amodel) ; protected: private: Handle_StepData_FileRecognizer thereco; Interface_GeneralLib theglib; Interface_ReaderLib therlib; }; // other Inline functions and methods (like "C++: function call" methods) #endif