Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
StepSelect_WorkLibrary Class Reference

Performs Read and Write a STEP File with a STEP Model
Following the protocols, Copy may be implemented or not

#include <StepSelect_WorkLibrary.hxx>

Inheritance diagram for StepSelect_WorkLibrary:
Inheritance graph
[legend]

Public Member Functions

 StepSelect_WorkLibrary (const Standard_Boolean copymode=Standard_True)
 Creates a STEP WorkLibrary
<copymode> precises whether Copy is implemented or not

void SetDumpLabel (const Standard_Integer mode)
 Selects a mode to dump entities
0 (D) : prints numbers, then displays table number/label
1 : prints labels, then displays table label/number
2 : prints labels onky

Standard_Integer ReadFile (const Standard_CString name, Handle< Interface_InterfaceModel > &model, const Handle< Interface_Protocol > &protocol) const
 Reads a STEP File and returns a STEP Model (into <mod>),
or lets <mod> "Null" in case of Error
Returns 0 if OK, 1 if Read Error, -1 if File not opened

Standard_Boolean WriteFile (IFSelect_ContextWrite &ctx) const
 Writes a File from a STEP Model
Returns False (and writes no file) if <ctx> does not bring a
STEP Model

virtual Standard_Boolean CopyModel (const Handle< Interface_InterfaceModel > &original, const Handle< Interface_InterfaceModel > &newmodel, const Interface_EntityIterator &list, Interface_CopyTool &TC) const
 Performs the copy of entities from an original model to a new
one. Works according <copymode> :
if True, standard copy is run
else nothing is done and returned value is False

void DumpEntity (const Handle< Interface_InterfaceModel > &model, const Handle< Interface_Protocol > &protocol, const Handle< Standard_Transient > &entity, const Handle< Message_Messenger > &S, const Standard_Integer level) const
 Dumps an entity under STEP form, i.e. as a part of a Step file
Works with a StepDumper.
Level 0 just displays type; level 1 displays the entity itself
and level 2 displays the entity plus its shared ones (one
sub-level : immediately shared entities)


Constructor & Destructor Documentation


Member Function Documentation

Reimplemented from IFSelect_WorkLibrary.

Implements IFSelect_WorkLibrary.

Implements IFSelect_WorkLibrary.

Implements IFSelect_WorkLibrary.


The documentation for this class was generated from the following file: