/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Open Design Alliance software pursuant to a license // agreement with Open Design Alliance. // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// // This file is generated automatically. #ifndef _IFC4_IFCRELDEFINES_AUTO_IMPL_H #define _IFC4_IFCRELDEFINES_AUTO_IMPL_H #include "IfcRelationshipAutoImpl.h" #include "TD_PackPush.h" /** \details The namespace contains schema-dependent classes, definitions and sub routines for work with IFC4 express schema definitions. */ namespace OdIfc4 { /** \details This class represents a generic and abstract relationship which subtypes are used to: * Assign a object type to an object occurrence. * Assign a property set to an object instance. * Assign a property set template to a property set. \remarks * EXAMPLE: Several instances of windows within the IFC project model can be of the same (catalogue or manufacturer) type. Thereby they share the same properties. This relationship is established by the subtype IfcRelDefinesByType of IfcRelDefines relationship assigning an IfcWindowStyle to multiple IfcWindow occurrences. * EXAMPLE: The (same) property set, e.g. Pset_ProductManufacturerInfo, keeping the manufacturer name, label and production year of a product, can be assigned to one, or many instances of furnishing. This relationship is established by the subtype IfcRelDefinesByProperties of IfcRelDefines relationship assigning an IfcPropertySet to one or more instances of IfcFurnishingElement. \changes * IFC4 changes: The attribute RelatedObjects had been demoted to the subtypes IfcRelDefinesByProperties and IfcRelDefinesByType. */ class IFC4_EXPORT IfcRelDefines : public IfcRelationship { //DOM-IGNORE-BEGIN OD_EXP_NON_INSTANTIABLE_DECLARE_MEMBERS(OdIfc4::IfcRelDefines); //DOM-IGNORE-END public: /** \details Returns a type of a class instance. \returns Pointer to the OdDAI::Entity type that determines an entity definition within a schema. */ virtual OdDAI::Entity* getInstanceType() const override; /** \details Early-bound version of instances comparison. \param pOther [in] Other application instance. \param ordering [out] Receives the ordering (comparison) status. \returns true if comparison was performed, false if method has no implementation, so late-bound version could be applied. \remarks If the method returns true, the ordering parameter can receive one of the following statuses: Name Value Description _kLessThan_ -1 This object < Other Object. _kEqual_ 0 This object = Other Object. _kGreaterThan_ 1 This object > Other Object. _kNotOrderable_ 2 This class is not orderable.
*/ virtual bool comparedToEarlyImpl(const OdDAI::ApplicationInstance *pOther, OdRx::Ordering &ordering) const override; /** \details Checks whether the specified instance is the object derived from or belongs to this class. \param entityType [in] Entity to check. \returns true if the specified instance is the object derived from or belongs to this class, false otherwise. */ virtual bool isKindOf(OdIfc::OdIfcEntityType entityType) const override; /** \details Returns the type of this entity. \returns A value of the OdIfc::OdIfcEntityType type that represents type of this entity. */ virtual OdIfc::OdIfcEntityType type() const override; }; /** \details A data type that represents a smart pointer to a IfcRelDefines object. */ typedef OdSmartPtr IfcRelDefinesPtr; } // namespace #include "TD_PackPop.h" #endif // _IFC4_IFCRELDEFINES_AUTO_IMPL_H