|
CFx SDK Documentation 2026 SP0
|
#include <IfcCurrencyRelationshipAutoImpl.h>
Public Member Functions | |
| const OdDAIObjectId & | getRelatingMonetaryUnit () const |
| void | setRelatingMonetaryUnit (const OdDAIObjectId &RelatingMonetaryUnit) |
| const OdDAIObjectId & | getRelatedMonetaryUnit () const |
| void | setRelatedMonetaryUnit (const OdDAIObjectId &RelatedMonetaryUnit) |
| double | getExchangeRate () const |
| void | setExchangeRate (double ExchangeRate) |
| const OdDAIObjectId & | getRateDateTime () const |
| void | setRateDateTime (const OdDAIObjectId &RateDateTime) |
| const OdDAIObjectId & | getRateSource () const |
| void | setRateSource (const OdDAIObjectId &RateSource) |
| IfcCurrencyRelationship () | |
| virtual OdResult | inFields (OdDAI::OdSpfFilerBase *rdFiler) override |
| virtual OdResult | outFields (OdDAI::OdSpfFilerBase *wrFiler) override |
| virtual OdDAI::Entity * | getInstanceType () const override |
| virtual OdRxValue | getAttr (const char *attrName) const override |
| virtual void | unsetAttr (const char *explicitAttrName) override |
| virtual bool | testAttr (const char *explicitAttrName) const override |
| virtual bool | putAttr (const char *explicitAttrName, const OdRxValue &val) override |
| virtual bool | isKindOf (OdIfc::OdIfcEntityType entityType) const override |
| virtual OdIfc::OdIfcEntityType | type () const override |
| virtual OdRxValue | getAttr (const OdIfc::OdIfcAttribute attrDef) const override |
| virtual void | unsetAttr (const OdIfc::OdIfcAttribute explicitAttrDef) override |
| virtual bool | testAttr (const OdIfc::OdIfcAttribute explicitAttrDef) const override |
| virtual bool | putAttr (const OdIfc::OdIfcAttribute explicitAttrDef, const OdRxValue &val) override |
Public Member Functions inherited from OdIfc::OdIfcInstance | |
| ODRX_DECLARE_MEMBERS (OdIfcInstance) | |
| OdIfcInstance () | |
| ~OdIfcInstance () | |
| bool | isInstanceOf (OdIfcEntityType entityType) const |
| IfcOpResult | resolved () |
| void | resolve (IfcOpResult resolved, void *resPtr) |
| void | unresolve () |
| virtual void | setGsNode (OdGsCache *pGsNode) |
| virtual OdGsCache * | gsNode () const |
| virtual OdUInt32 | subSetAttributes (OdGiDrawableTraits *traits) const |
| virtual bool | subWorldDraw (OdGiWorldDraw *wd) const |
| virtual OdDbStub * | ownerId () const |
Protected Attributes | |
| OdDAIObjectId | m_RelatingMonetaryUnit |
| OdDAIObjectId | m_RelatedMonetaryUnit |
| IfcPositiveRatioMeasure | m_ExchangeRate |
| OdDAIObjectId | m_RateDateTime |
| OdDAIObjectId | m_RateSource |
Protected Attributes inherited from OdIfc::OdIfcInstance | |
| void * | m_resPtr |
| IfcOpResult | m_resolved |
Additional Inherited Members | |
Static Public Member Functions inherited from OdIfc::OdIfcInstance | |
| static const OdGePoint3d * | asPoint3d (const OdIfcInstance *inst) |
| static const OdGePoint2d * | asPoint2d (const OdIfcInstance *inst) |
| static const OdGeVector3d * | asVector3d (const OdIfcInstance *inst) |
| static const OdGeVector2d * | asVector2d (const OdIfcInstance *inst) |
| static const OdGeMatrix2d * | asMatrix2d (const OdIfcInstance *inst) |
| static const OdGeMatrix3d * | asMatrix3d (const OdIfcInstance *inst) |
| static OdIfcCompoundPtr | asCompound (OdSmartPtr< OdIfcInstance > inst) |
| static const OdCmEntityColor * | asRgbColor (const OdIfcInstance *inst) |
IfcCurrencyRelationship defines the rate of exchange that applies between two designated currencies at a particular time and as published by a particular source.
An IfcCurrencyRelationship is used where there can be a need to reference an IfcCostValue in one currency to an IfcCostValue in another currency. It takes into account the fact that currency exchange rates can vary by requiring the recording the date and time of the currency exchange rate used and the source that publishes the rate. There can be many sources and there are different strategies for currency conversion (spot rate, forward buying of currency at a fixed rate).
Definition at line 55 of file Ifc2x2_Final/IfcCurrencyRelationshipAutoImpl.h.
| OdIfc2x2_final::IfcCurrencyRelationship::IfcCurrencyRelationship | ( | ) |
Default constructor for the IfcCurrencyRelationship class.
|
overridevirtual |
Returns an attribute value for the specified attribute name.
| attrName | [in] Name of an attribute to query. |
|
overridevirtual |
Returns an attribute value for the specified attribute definition.
| attrDef | [in] Attribute definition to query. |
Reimplemented from OdIfc::OdIfcInstance.
| double OdIfc2x2_final::IfcCurrencyRelationship::getExchangeRate | ( | ) | const |
Returns the value of ExchangeRate attribute. This attribute represents the currently agreed ratio of the amount of a related monetary unit that is equivalent to a unit amount of the relating monetary unit in a currency relationship. For instance, in the case of a conversion from GBP to USD, the value of the exchange rate can be 1.486 (USD) : 1 (GBP).
|
overridevirtual |
Returns a type of a class instance.
| const OdDAIObjectId & OdIfc2x2_final::IfcCurrencyRelationship::getRateDateTime | ( | ) | const |
Returns the value of RateDateTime attribute. This attribute represents the date and time at which an exchange rate applies.
| const OdDAIObjectId & OdIfc2x2_final::IfcCurrencyRelationship::getRateSource | ( | ) | const |
Returns the value of RateSource attribute. This attribute represents the source from which an exchange rate is obtained.
| const OdDAIObjectId & OdIfc2x2_final::IfcCurrencyRelationship::getRelatedMonetaryUnit | ( | ) | const |
Returns the value of RelatedMonetaryUnit attribute. This attribute represents the monetary unit to which an exchange results. For instance, in the case of a conversion from GBP to USD, the related monetary unit is USD.
| const OdDAIObjectId & OdIfc2x2_final::IfcCurrencyRelationship::getRelatingMonetaryUnit | ( | ) | const |
Returns the value of RelatingMonetaryUnit attribute. This attribute represents the monetary unit from which an exchange is derived. For instance, in the case of a conversion from GBP to USD, the relating monetary unit is GBP.
|
overridevirtual |
Reads object's data from the specified filer.
| rdFiler | [in] Pointer to a filer from which to read the data. |
|
overridevirtual |
Checks whether the specified instance is the object derived from or belongs to this class.
| entityType | [in] Entity to check. |
Reimplemented from OdIfc::OdIfcInstance.
|
overridevirtual |
Writes object's data the the specified filer.
| wrFiler | [in] Pointer to a filer to which to write the data. |
|
overridevirtual |
Sets the specified attribute with a given value.
| explicitAttrName | [in] Explicit name of the attribute to set. |
| val | [in] Value to set. |
Reimplemented from OdIfc::OdIfcInstance.
|
overridevirtual |
Sets the specified attribute with a given value.
| explicitAttrDef | [in] Explicit attribute definition to set. |
| val | [in] Value to set. |
Reimplemented from OdIfc::OdIfcInstance.
| void OdIfc2x2_final::IfcCurrencyRelationship::setExchangeRate | ( | double | ExchangeRate | ) |
Sets the value of ExchangeRate attribute. This attribute represents the currently agreed ratio of the amount of a related monetary unit that is equivalent to a unit amount of the relating monetary unit in a currency relationship. For instance, in the case of a conversion from GBP to USD, the value of the exchange rate can be 1.486 (USD) : 1 (GBP).
| ExchangeRate | [in] Exchange rate to set. |
| void OdIfc2x2_final::IfcCurrencyRelationship::setRateDateTime | ( | const OdDAIObjectId & | RateDateTime | ) |
Sets the value of RateDateTime attribute. This attribute represents the date and time at which an exchange rate applies.
| RateDateTime | [in] Rate date time to set. |
| void OdIfc2x2_final::IfcCurrencyRelationship::setRateSource | ( | const OdDAIObjectId & | RateSource | ) |
Sets the value of RateSource attribute. This attribute represents the source from which an exchange rate is obtained.
| RateSource | [in] Rate source to set. |
| void OdIfc2x2_final::IfcCurrencyRelationship::setRelatedMonetaryUnit | ( | const OdDAIObjectId & | RelatedMonetaryUnit | ) |
Sets the value of RelatedMonetaryUnit attribute. This attribute represents the monetary unit to which an exchange results. For instance, in the case of a conversion from GBP to USD, the related monetary unit is USD.
| RelatedMonetaryUnit | [in] Related monetary unit to set. |
| void OdIfc2x2_final::IfcCurrencyRelationship::setRelatingMonetaryUnit | ( | const OdDAIObjectId & | RelatingMonetaryUnit | ) |
Sets the value of RelatingMonetaryUnit attribute. This attribute represents the monetary unit from which an exchange is derived. For instance, in the case of a conversion from GBP to USD, the relating monetary unit is GBP.
| RelatingMonetaryUnit | [in] Relating monetary unit to set. |
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrName | [in] Explicit name of the attribute to test. |
Reimplemented from OdIfc::OdIfcInstance.
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrDef | [in] Attribute definition to test. |
Reimplemented from OdIfc::OdIfcInstance.
|
overridevirtual |
Returns the type of this entity.
Reimplemented from OdIfc::OdIfcInstance.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrName | [in] Explicit name of the attribute to reset. |
Reimplemented from OdIfc::OdIfcInstance.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrDef | [in] Explicit definition that represents an attribute to reset. |
Reimplemented from OdIfc::OdIfcInstance.
|
protected |
Definition at line 264 of file Ifc2x2_Final/IfcCurrencyRelationshipAutoImpl.h.
|
protected |
Definition at line 265 of file Ifc2x2_Final/IfcCurrencyRelationshipAutoImpl.h.
|
protected |
Definition at line 266 of file Ifc2x2_Final/IfcCurrencyRelationshipAutoImpl.h.
|
protected |
Definition at line 263 of file Ifc2x2_Final/IfcCurrencyRelationshipAutoImpl.h.
|
protected |
Definition at line 262 of file Ifc2x2_Final/IfcCurrencyRelationshipAutoImpl.h.