// 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_FreeFormEntity_HeaderFile #define _StepData_FreeFormEntity_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_StepData_FreeFormEntity_HeaderFile #include #endif #ifndef _TCollection_AsciiString_HeaderFile #include #endif #ifndef _Handle_StepData_HArray1OfField_HeaderFile #include #endif #ifndef _Handle_StepData_FreeFormEntity_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_TColStd_HSequenceOfAsciiString_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif class StepData_HArray1OfField; class TColStd_HSequenceOfAsciiString; class StepData_Field; //! A Free Form Entity allows to record any kind of STEP
//! parameters, in any way of typing
//! It is implemented with an array of fields
//! A Complex entity can be defined, as a chain of FreeFormEntity
//! (see Next and As)
class StepData_FreeFormEntity : public MMgt_TShared { public: //! Creates a FreeFormEntity, with no field, no type
Standard_EXPORT StepData_FreeFormEntity(); //! Sets the type of an entity
//! For a complex one, the type of this member
Standard_EXPORT void SetStepType(const Standard_CString typenam) ; //! Returns the recorded StepType
//! For a complex one, the type of this member
Standard_EXPORT Standard_CString StepType() const; //! Sets a next member, in order to define or complete a Complex
//! entity
//! If is True (D), this next will be set as last of list
//! Else, it is inserted just as next of
//! If is Null, Next is cleared
Standard_EXPORT void SetNext(const Handle(StepData_FreeFormEntity)& next,const Standard_Boolean last = Standard_True) ; //! Returns the next member of a Complex entity
//! (remark : the last member has none)
Standard_EXPORT Handle_StepData_FreeFormEntity Next() const; //! Returns True if a FreeFormEntity is Complex (i.e. has Next)
Standard_EXPORT Standard_Boolean IsComplex() const; //! Returns the member of a FreeFormEntity of which the type name
//! is given (exact match, no sub-type)
Standard_EXPORT Handle_StepData_FreeFormEntity Typed(const Standard_CString typenam) const; //! Returns the list of types (one type for a simple entity),
//! as is (non reordered)
Standard_EXPORT Handle_TColStd_HSequenceOfAsciiString TypeList() const; //! Reorders a Complex entity if required, i.e. if member types
//! are not in alphabetic order
//! Returns False if nothing done (order was OK or simple entity),
//! True plus modified if has been reordered
Standard_EXPORT static Standard_Boolean Reorder(Handle(StepData_FreeFormEntity)& ent) ; //! Sets a count of Fields, from scratch
Standard_EXPORT void SetNbFields(const Standard_Integer nb) ; //! Returns the count of fields
Standard_EXPORT Standard_Integer NbFields() const; //! Returns a field from its rank, for read-only use
Standard_EXPORT const StepData_Field& Field(const Standard_Integer num) const; //! Returns a field from its rank, in order to modify it
Standard_EXPORT StepData_Field& CField(const Standard_Integer num) ; DEFINE_STANDARD_RTTI(StepData_FreeFormEntity) protected: private: TCollection_AsciiString thetype; Handle_StepData_HArray1OfField thefields; Handle_StepData_FreeFormEntity thenext; }; // other Inline functions and methods (like "C++: function call" methods) #endif