/////////////////////////////////////////////////////////////////////////////// // 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. /////////////////////////////////////////////////////////////////////////////// #ifndef _IFC_QUANTITY_SET_FILLER_H #define _IFC_QUANTITY_SET_FILLER_H #include "IfcBuilder.h" #include "TD_PackPush.h" class OdIfcModelFiller; /** \details Sub class of IfcBuilder that provides independent IfcQuantityCount creation operations. */ class IFCCORE_EXPORT IfcQuantitySetFiller : public IfcBuilder { protected: static OdSmartPtr createObject( OdIfcModelFiller *filler, OdIfc::OdIfcInstancePtr objectDefinition); OdIfc::OdIfcInstancePtr m_objectDefinition; OdIfc::OdIfcInstancePtr m_quantitySet; OdDAIObjectIds m_idProperties; public: ODRX_DECLARE_MEMBERS(IfcQuantitySetFiller); /** \details Gets an object definition. \returns Smart pointer to OdIfcInstance representing an object definition. */ OdIfc::OdIfcInstancePtr getObjectDefinition() { return m_objectDefinition; }; /** \details Gets an associated quantity set. \returns Smart pointer to OdIfcInstance representing an associated quantity set. */ OdIfc::OdIfcInstancePtr getQuantitySet() { return m_quantitySet; }; /** \details Creates an instance of IfcQuantityCount element. \param name [in] OdAnsiString as name of quantity count. \param countValue [in] double as count measure value of this quantity. \param formula [in] OdAnsiString as measure description. \returns A reference to the current IfPropertySetFiller. */ IfcQuantitySetFiller& appendQuantityCount( const OdAnsiString &name, double countValue, const OdAnsiString &formula); /** \details Creates an instance of IfcQuantityLength element. \param name [in] OdAnsiString as name of quantity count. \param lengthValue [in] double as length measure value of this quantity. \param formula [in] OdAnsiString as measure description. \returns A reference to the current IfPropertySetFiller. */ IfcQuantitySetFiller& appendQuantityLength( const OdAnsiString &name, double lengthValue, const OdAnsiString &formula); /** \details Creates an instance of IfcElementQuantity element and IfcRelDefinesByProperties based on m_objectDefinition and m_idProperties set. \param name [in] OdAnsiString as name of element set. \returns A pointer to the created and appended to the model entity. */ OdIfc::OdIfcInstancePtr createRelDefinesQuantitySet(const OdAnsiString &name); friend class OdIfcModelFiller; }; /** \details A data type that represents a smart pointer to a IfcQuantitySetFiller object. */ typedef OdSmartPtr IfcQuantitySetFillerPtr; #include "TD_PackPop.h" #endif // _IFC_QUANTITY_SET_FILLER_H