Open CASCADE Technology  6.9.1
Public Member Functions
StepData_DescrReadWrite Class Reference

#include <StepData_DescrReadWrite.hxx>

Inheritance diagram for StepData_DescrReadWrite:
Inheritance graph
[legend]

Public Member Functions

 StepData_DescrReadWrite (const Handle< StepData_Protocol > &proto)
 
Standard_Integer CaseStep (const TCollection_AsciiString &atype) const
 Defines Case Numbers corresponding to the recognized Types Called by CaseNum (data,num) above for a Simple Type Entity Warning : CaseStep must give the same Value as Protocol does for the Entity type which corresponds to this Type given as a String. More...
 
virtual Standard_Integer CaseStep (const TColStd_SequenceOfAsciiString &types) const
 Same a above but for a Complex Type Entity ("Plex") The provided Default recognizes nothing. More...
 
virtual Standard_Boolean IsComplex (const Standard_Integer CN) const
 Returns True if the Case Number corresponds to a Complex Type ("Plex"). Remember that all possible combinations must be aknowledged to be processed Default is False for all cases. For a Protocol which defines possible Plexes, this method must be redefined. More...
 
const TCollection_AsciiStringStepType (const Standard_Integer CN) const
 Function specific to STEP, which delivers the StepType as it is recorded in and read from a File compliant with STEP. This method is symmetric to the method CaseStep. StepType can be different from Dynamic Type's name, but belongs to the same class of Object. Returns an empty String if <CN> is zero. Warning : For a Complex Type Entity, returns an Empty String (Complex Type must be managed by users) More...
 
virtual Standard_Boolean ComplexType (const Standard_Integer CN, TColStd_SequenceOfAsciiString &types) const
 Function specific to STEP, which delivers the list of types which corresponds to a complex type. If <CN> is not for a complex type, this method returns False. Else it returns True and fills the list in alphabetic order. The default returns False. To be redefined as required. More...
 
void ReadStep (const Standard_Integer CN, const Handle< StepData_StepReaderData > &data, const Standard_Integer num, Handle< Interface_Check > &ach, const Handle< Standard_Transient > &ent) const
 Specific Read Function. Works with StepReaderData. More...
 
void WriteStep (const Standard_Integer CN, StepData_StepWriter &SW, const Handle< Standard_Transient > &ent) const
 Write Function, switched by CaseNum. More...
 
- Public Member Functions inherited from StepData_ReadWriteModule
Standard_Integer CaseNum (const Handle< Interface_FileReaderData > &data, const Standard_Integer num) const
 Translate the Type of record <num> in <data> to a positive Case Number, or 0 if failed. Works with a StepReaderData, in which the Type of an Entity is defined as a String : Reads the RecordType <num> then calls CaseNum (this type) Warning : The methods CaseStep, StepType and Recognize, must be in phase (triplets CaseNum-StepType-Type of Object) More...
 
virtual TCollection_AsciiString ShortType (const Standard_Integer CN) const
 Function specific to STEP. Some STEP Types have a short form This method can be redefined to fill it By default, returns an empty string, which is then interpreted to take normal form from StepType. More...
 
void Read (const Standard_Integer CN, const Handle< Interface_FileReaderData > &data, const Standard_Integer num, Handle< Interface_Check > &ach, const Handle< Standard_Transient > &ent) const
 General Read Function, calls ReadStep. More...
 
- Public Member Functions inherited from Interface_ReaderModule
virtual Standard_Boolean NewRead (const Standard_Integer casenum, const Handle< Interface_FileReaderData > &data, const Standard_Integer num, Handle< Interface_Check > &ach, Handle< Standard_Transient > &ent) const
 Specific operator (create+read) defaulted to do nothing. It can be redefined when it is not possible to work in two steps (NewVoid then Read). This occurs when no default constructor is defined : hence the result <ent> must be created with an effective definition from the reader. Remark : if NewRead is defined, Copy has nothing to do. More...
 
- Public Member Functions inherited from MMgt_TShared
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual const Handle_Standard_Type & DynamicType () const
 Returns a type information object about this object. More...
 
Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
virtual Handle_Standard_Transient This () const
 Returns a Handle which references this object. Must never be called to objects created in stack. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 

Constructor & Destructor Documentation

StepData_DescrReadWrite::StepData_DescrReadWrite ( const Handle< StepData_Protocol > &  proto)

Member Function Documentation

Standard_Integer StepData_DescrReadWrite::CaseStep ( const TCollection_AsciiString atype) const
virtual

Defines Case Numbers corresponding to the recognized Types Called by CaseNum (data,num) above for a Simple Type Entity Warning : CaseStep must give the same Value as Protocol does for the Entity type which corresponds to this Type given as a String.

Implements StepData_ReadWriteModule.

virtual Standard_Integer StepData_DescrReadWrite::CaseStep ( const TColStd_SequenceOfAsciiString types) const
virtual

Same a above but for a Complex Type Entity ("Plex") The provided Default recognizes nothing.

Reimplemented from StepData_ReadWriteModule.

virtual Standard_Boolean StepData_DescrReadWrite::ComplexType ( const Standard_Integer  CN,
TColStd_SequenceOfAsciiString types 
) const
virtual

Function specific to STEP, which delivers the list of types which corresponds to a complex type. If <CN> is not for a complex type, this method returns False. Else it returns True and fills the list in alphabetic order. The default returns False. To be redefined as required.

Reimplemented from StepData_ReadWriteModule.

virtual Standard_Boolean StepData_DescrReadWrite::IsComplex ( const Standard_Integer  CN) const
virtual

Returns True if the Case Number corresponds to a Complex Type ("Plex"). Remember that all possible combinations must be aknowledged to be processed Default is False for all cases. For a Protocol which defines possible Plexes, this method must be redefined.

Reimplemented from StepData_ReadWriteModule.

void StepData_DescrReadWrite::ReadStep ( const Standard_Integer  CN,
const Handle< StepData_StepReaderData > &  data,
const Standard_Integer  num,
Handle< Interface_Check > &  ach,
const Handle< Standard_Transient > &  ent 
) const
virtual

Specific Read Function. Works with StepReaderData.

Implements StepData_ReadWriteModule.

const TCollection_AsciiString& StepData_DescrReadWrite::StepType ( const Standard_Integer  CN) const
virtual

Function specific to STEP, which delivers the StepType as it is recorded in and read from a File compliant with STEP. This method is symmetric to the method CaseStep. StepType can be different from Dynamic Type's name, but belongs to the same class of Object. Returns an empty String if <CN> is zero. Warning : For a Complex Type Entity, returns an Empty String (Complex Type must be managed by users)

Implements StepData_ReadWriteModule.

void StepData_DescrReadWrite::WriteStep ( const Standard_Integer  CN,
StepData_StepWriter SW,
const Handle< Standard_Transient > &  ent 
) const
virtual

Write Function, switched by CaseNum.

Implements StepData_ReadWriteModule.


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