OCC Main Page | DataExchange | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

DataExchange
TKIGES
IGESData


IGESData_IGESReaderTool Class Reference

specific FileReaderTool for IGES
Parameters are accessed through specific objects, ParamReaders

#include <IGESData_IGESReaderTool.hxx>

Inheritance diagram for IGESData_IGESReaderTool:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT IGESData_IGESReaderTool (const Handle(IGESData_IGESReaderData)&reader, const Handle(IGESData_Protocol)&protocol)
 creates IGESReaderTool to work with an IGESReaderData and an
IGES Protocol.
Actually, no Lib is used

Standard_EXPORT void Prepare (const Handle(IGESData_FileRecognizer)&reco)
 binds empty entities to records, works with the Protocol
(from IGESData) stored and later used
RQ : Actually, sets DNum into IGES Entities
Also loads the list of parameters for ParamReader

Standard_EXPORT Standard_Boolean Recognize (const Standard_Integer num, Handle(Interface_Check)&ach, Handle(Standard_Transient)&ent)
 recognizes records by asking Protocol (on data of DirType)

Standard_EXPORT void BeginRead (const Handle(Interface_InterfaceModel)&amodel)
 fills model's header, that is, its GlobalSection

Standard_EXPORT Standard_Boolean AnalyseRecord (const Standard_Integer num, const Handle(Standard_Transient)&anent, Handle(Interface_Check)&acheck)
 fills an entity, given record no; works by calling ReadDirPart
then ReadParams (with help of a ParamReader), then if required
ReadProps and ReadAssocs, from IGESEntity
Returns True if no fail has been recorded

virtual Standard_EXPORT void EndRead (const Handle(Interface_InterfaceModel)&amodel)
 after reading entities, true line weights can be computed

Standard_EXPORT void ReadDir (const Handle(IGESData_IGESEntity)&ent, const Handle(IGESData_IGESReaderData)&IR, const IGESData_DirPart &DP, Handle(Interface_Check)&ach) const
 Reads directory part componants from file; DP is the litteral
directory part, IR detains entities referenced by DP
.
Standard_EXPORT void ReadOwnParams (const Handle(IGESData_IGESEntity)&ent, const Handle(IGESData_IGESReaderData)&IR, IGESData_ParamReader &PR) const
 Performs Reading of own Parameters for each IGESEntity
Works with the ReaderLib loaded with ReadWriteModules for IGES
In case of failure, tries UndefinedEntity from IGES
.
Standard_EXPORT void ReadProps (const Handle(IGESData_IGESEntity)&ent, const Handle(IGESData_IGESReaderData)&IR, IGESData_ParamReader &PR) const
 Reads Property List, if there is (if not, does nothing)
criterium is : current parameter of PR remains inside params
list, and Stage is "Own"
Current parameter must be a positive integer, which value
gives the length of the list; else, a Fail is produced (into
Check of PR) and reading process is stopped
.
Standard_EXPORT void ReadAssocs (const Handle(IGESData_IGESEntity)&ent, const Handle(IGESData_IGESReaderData)&IR, IGESData_ParamReader &PR) const
 Reads Associativity List, if there is (if not, does nothing)
criterium is : current parameter of PR remains inside params
list, and Stage is "Own"
Same conditions as above; in addition, no parameter must be
let after the list once read
Note that "Associated" entities are not declared "Shared"
.

Private Attributes

Handle_Interface_ParamList thelist
Handle_IGESData_FileRecognizer thereco
Interface_GeneralLib theglib
Interface_ReaderLib therlib
Standard_Integer thecnum
IGESData_IGESType thectyp
IGESData_ReadStage thestep
Handle_Interface_Check thechk
Standard_Integer thegradweight
Standard_Real themaxweight
Standard_Real thedefweight

Constructor & Destructor Documentation

Standard_EXPORT IGESData_IGESReaderTool::IGESData_IGESReaderTool const Handle(IGESData_IGESReaderData)&  reader,
const Handle(IGESData_Protocol)&  protocol
 


Member Function Documentation

Standard_EXPORT Standard_Boolean IGESData_IGESReaderTool::AnalyseRecord const Standard_Integer  num,
const Handle(Standard_Transient)&  anent,
Handle(Interface_Check)&  acheck
[virtual]
 

Implements Interface_FileReaderTool.

Standard_EXPORT void IGESData_IGESReaderTool::BeginRead const Handle(Interface_InterfaceModel)&  amodel  )  [virtual]
 

Implements Interface_FileReaderTool.

virtual Standard_EXPORT void IGESData_IGESReaderTool::EndRead const Handle(Interface_InterfaceModel)&  amodel  )  [virtual]
 

Reimplemented from Interface_FileReaderTool.

void IGESData_IGESReaderTool::operator delete void *  anAddress  )  [inline]
 

Reimplemented from Interface_FileReaderTool.

void* IGESData_IGESReaderTool::operator new size_t  size  )  [inline]
 

Reimplemented from Interface_FileReaderTool.

void* IGESData_IGESReaderTool::operator new size_t  ,
void *  anAddress
[inline]
 

Reimplemented from Interface_FileReaderTool.

Standard_EXPORT void IGESData_IGESReaderTool::Prepare const Handle(IGESData_FileRecognizer)&  reco  ) 
 

Standard_EXPORT void IGESData_IGESReaderTool::ReadAssocs const Handle(IGESData_IGESEntity)&  ent,
const Handle(IGESData_IGESReaderData)&  IR,
IGESData_ParamReader PR
const
 

Standard_EXPORT void IGESData_IGESReaderTool::ReadDir const Handle(IGESData_IGESEntity)&  ent,
const Handle(IGESData_IGESReaderData)&  IR,
const IGESData_DirPart DP,
Handle(Interface_Check)&  ach
const
 

Standard_EXPORT void IGESData_IGESReaderTool::ReadOwnParams const Handle(IGESData_IGESEntity)&  ent,
const Handle(IGESData_IGESReaderData)&  IR,
IGESData_ParamReader PR
const
 

Standard_EXPORT void IGESData_IGESReaderTool::ReadProps const Handle(IGESData_IGESEntity)&  ent,
const Handle(IGESData_IGESReaderData)&  IR,
IGESData_ParamReader PR
const
 

Standard_EXPORT Standard_Boolean IGESData_IGESReaderTool::Recognize const Standard_Integer  num,
Handle(Interface_Check)&  ach,
Handle(Standard_Transient)&  ent
[virtual]
 

Implements Interface_FileReaderTool.


Field Documentation

Handle_Interface_Check IGESData_IGESReaderTool::thechk [private]
 

Standard_Integer IGESData_IGESReaderTool::thecnum [private]
 

IGESData_IGESType IGESData_IGESReaderTool::thectyp [private]
 

Standard_Real IGESData_IGESReaderTool::thedefweight [private]
 

Interface_GeneralLib IGESData_IGESReaderTool::theglib [private]
 

Standard_Integer IGESData_IGESReaderTool::thegradweight [private]
 

Handle_Interface_ParamList IGESData_IGESReaderTool::thelist [private]
 

Standard_Real IGESData_IGESReaderTool::themaxweight [private]
 

Handle_IGESData_FileRecognizer IGESData_IGESReaderTool::thereco [private]
 

Interface_ReaderLib IGESData_IGESReaderTool::therlib [private]
 

IGESData_ReadStage IGESData_IGESReaderTool::thestep [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 14:40:24 2008 for OpenCASCADE by  doxygen 1.4.1