Open CASCADE Technology 7.8.2.dev
|
General module to read and write HeaderSection entities. More...
#include <RWHeaderSection_ReadWriteModule.hxx>
Public Member Functions | |
RWHeaderSection_ReadWriteModule () | |
Standard_Integer | CaseStep (const TCollection_AsciiString &atype) const override |
associates a positive Case Number to each type of HeaderSection entity, given as a String defined in the EXPRESS form | |
virtual Standard_Integer | CaseStep (const TColStd_SequenceOfAsciiString &types) const override |
associates a positive Case Number to each type of HeaderSection Complex entity, given as a String defined in the EXPRESS form | |
virtual Standard_Boolean | IsComplex (const Standard_Integer CN) const override |
returns True if the Case Number corresponds to a Complex Type | |
const TCollection_AsciiString & | StepType (const Standard_Integer CN) const override |
returns a StepType (defined in EXPRESS form which belongs to a Type of Entity, identified by its CaseNumber determined by Protocol | |
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 override |
Specific Read Function. Works with StepReaderData. | |
void | WriteStep (const Standard_Integer CN, StepData_StepWriter &SW, const Handle< Standard_Transient > &ent) const override |
Write Function, switched by CaseNum. | |
Public Member Functions inherited from StepData_ReadWriteModule | |
Standard_Integer | CaseNum (const Handle< Interface_FileReaderData > &data, const Standard_Integer num) const override |
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) | |
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. | |
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. | |
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 override |
General Read Function, calls ReadStep. | |
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. | |
Public Member Functions inherited from Standard_Transient | |
Standard_Transient () | |
Empty constructor. | |
Standard_Transient (const Standard_Transient &) | |
Copy constructor – does nothing. | |
Standard_Transient & | operator= (const Standard_Transient &) |
Assignment operator, needed to avoid copying reference counter. | |
virtual | ~Standard_Transient () |
Destructor must be virtual. | |
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
Returns a type descriptor about this object. | |
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
Returns a true value if this is an instance of Type. | |
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
Returns a true value if this is an instance of TypeName. | |
Standard_Boolean | IsKind (const opencascade::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. | |
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. | |
Standard_Transient * | This () const |
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. | |
Standard_Integer | GetRefCount () const noexcept |
Get the reference counter of this object. | |
void | IncrementRefCounter () noexcept |
Increments the reference counter of this object. | |
Standard_Integer | DecrementRefCounter () noexcept |
Decrements the reference counter of this object; returns the decremented value. | |
virtual void | Delete () const |
Memory deallocator for transient classes. | |
Additional Inherited Members | |
Public Types inherited from Standard_Transient | |
typedef void | base_type |
Returns a type descriptor about this object. | |
Static Public Member Functions inherited from Standard_Transient | |
static constexpr const char * | get_type_name () |
Returns a type descriptor about this object. | |
static const opencascade::handle< Standard_Type > & | get_type_descriptor () |
Returns type descriptor of Standard_Transient class. | |
General module to read and write HeaderSection entities.
RWHeaderSection_ReadWriteModule::RWHeaderSection_ReadWriteModule | ( | ) |
|
overridevirtual |
associates a positive Case Number to each type of HeaderSection entity, given as a String defined in the EXPRESS form
Implements StepData_ReadWriteModule.
|
overridevirtual |
associates a positive Case Number to each type of HeaderSection Complex entity, given as a String defined in the EXPRESS form
Reimplemented from StepData_ReadWriteModule.
|
overridevirtual |
returns True if the Case Number corresponds to a Complex Type
Reimplemented from StepData_ReadWriteModule.
|
overridevirtual |
Specific Read Function. Works with StepReaderData.
Implements StepData_ReadWriteModule.
|
overridevirtual |
returns a StepType (defined in EXPRESS form which belongs to a Type of Entity, identified by its CaseNumber determined by Protocol
Implements StepData_ReadWriteModule.
|
overridevirtual |
Write Function, switched by CaseNum.
Implements StepData_ReadWriteModule.