|
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 OdAnsiString & | getRateDateTime () const |
| void | setRateDateTime (const OdAnsiString &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 OdIfc4x2::IfcResourceLevelRelationship | |
| const OdAnsiString & | getName () const |
| void | setName (const OdAnsiString &Name) |
| const OdAnsiString & | getDescription () const |
| void | setDescription (const OdAnsiString &Description) |
| IfcResourceLevelRelationship () | |
Public Member Functions inherited from OdIfc4x2::OdIfc4x2Instance | |
| void | setInverseCounterParts () 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 |
| OdAnsiString | m_RateDateTime |
| OdDAIObjectId | m_RateSource |
Protected Attributes inherited from OdIfc4x2::IfcResourceLevelRelationship | |
| OdAnsiString | m_Name |
| OdAnsiString | m_Description |
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).
\changes
IFC4 changes: Attribute RateDateTime is optional Type of the RateDateTime attribute changed from "IfcDateAndTime" to "IfcDateTime"
Definition at line 56 of file Ifc4x2/IfcCurrencyRelationshipAutoImpl.h.
| OdIfc4x2::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. |
Reimplemented from OdIfc4x2::IfcResourceLevelRelationship.
|
overridevirtual |
Returns an attribute value for the specified attribute definition.
| attrDef | [in] Attribute definition to query. |
Reimplemented from OdIfc4x2::IfcResourceLevelRelationship.
| double OdIfc4x2::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.
Reimplemented from OdIfc4x2::IfcResourceLevelRelationship.
| const OdAnsiString & OdIfc4x2::IfcCurrencyRelationship::getRateDateTime | ( | ) | const |
Returns the value of RateDateTime attribute. This attribute represents the date and time at which an exchange rate applies.
| const OdDAIObjectId & OdIfc4x2::IfcCurrencyRelationship::getRateSource | ( | ) | const |
Returns the value of RateSource attribute. This attribute represents the source from which an exchange rate is obtained.
| const OdDAIObjectId & OdIfc4x2::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 & OdIfc4x2::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. |
Reimplemented from OdIfc4x2::IfcResourceLevelRelationship.
|
overridevirtual |
Checks whether the specified instance is the object derived from or belongs to this class.
| entityType | [in] Entity to check. |
Reimplemented from OdIfc4x2::IfcResourceLevelRelationship.
|
overridevirtual |
Writes object's data the the specified filer.
| wrFiler | [in] Pointer to a filer to which to write the data. |
Reimplemented from OdIfc4x2::IfcResourceLevelRelationship.
|
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 OdIfc4x2::IfcResourceLevelRelationship.
|
overridevirtual |
Sets the specified attribute with a given value.
| explicitAttrDef | [in] Explicit attribute definition to set. |
| val | [in] Value to set. |
Reimplemented from OdIfc4x2::IfcResourceLevelRelationship.
| void OdIfc4x2::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 OdIfc4x2::IfcCurrencyRelationship::setRateDateTime | ( | const OdAnsiString & | 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 OdIfc4x2::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 OdIfc4x2::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 OdIfc4x2::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 OdIfc4x2::IfcResourceLevelRelationship.
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrDef | [in] Attribute definition to test. |
Reimplemented from OdIfc4x2::IfcResourceLevelRelationship.
|
overridevirtual |
Returns the type of this entity.
Reimplemented from OdIfc4x2::IfcResourceLevelRelationship.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrName | [in] Explicit name of the attribute to reset. |
Reimplemented from OdIfc4x2::IfcResourceLevelRelationship.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrDef | [in] Explicit definition that represents an attribute to reset. |
Reimplemented from OdIfc4x2::IfcResourceLevelRelationship.
|
protected |
Definition at line 265 of file Ifc4x2/IfcCurrencyRelationshipAutoImpl.h.
|
protected |
Definition at line 266 of file Ifc4x2/IfcCurrencyRelationshipAutoImpl.h.
|
protected |
Definition at line 267 of file Ifc4x2/IfcCurrencyRelationshipAutoImpl.h.
|
protected |
Definition at line 264 of file Ifc4x2/IfcCurrencyRelationshipAutoImpl.h.
|
protected |
Definition at line 263 of file Ifc4x2/IfcCurrencyRelationshipAutoImpl.h.