Class Ifc2x3::IfcCurrencyRelationship¶
Defined in File Ifc2x3.h
Nested Relationships¶
This class is a nested type of Struct Ifc2x3.
Inheritance Relationships¶
Base Type¶
public IfcUtil::IfcBaseEntity
(Class IfcBaseEntity)
Class Documentation¶
-
class
Ifc2x3
::
IfcCurrencyRelationship
: public IfcUtil::IfcBaseEntity¶ IfcCurrencyRelationship defines the rate of exchange that applies between two designated currencies at a particular time and as published by a particular source.
HISTORY New Entity in IFC2x2.
IFC2x4 CHANGE Subtyped from IfcResourceLevelRelationship, attribute order changed.
Use definitions An IfcCurrencyRelationship is used where there may be a need to reference an IfcCostValue in one currency to an IfcCostValue in another currency. It takes account of fact that currency exchange rates may vary by requiring the recording the date and time of the currency exchange rate used and the source that publishes the rate. There may be many sources and there are different strategies for currency conversion (spot rate, forward buying of currency at a fixed rate). The source for the currency exchange is defined as an instance of IfcLibraryInformation that includes a name and a URL.
Public Types
-
typedef IfcTemplatedEntityList<IfcCurrencyRelationship>
list
¶
Public Functions
-
::Ifc2x3::IfcMonetaryUnit *
RelatingMonetaryUnit
() const¶ 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.
-
void
setRelatingMonetaryUnit
(::Ifc2x3::IfcMonetaryUnit *v)¶
-
::Ifc2x3::IfcMonetaryUnit *
RelatedMonetaryUnit
() const¶ 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.
-
void
setRelatedMonetaryUnit
(::Ifc2x3::IfcMonetaryUnit *v)¶
-
double
ExchangeRate
() const¶ 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 may be 1.486 (USD) : 1 (GBP).
-
void
setExchangeRate
(double v)¶
-
::Ifc2x3::IfcDateAndTime *
RateDateTime
() const¶ The date and time at which an exchange rate applies.
IFC2x4 CHANGE Type changed from IfcDateTimeSelect. Attribute made optional.
-
void
setRateDateTime
(::Ifc2x3::IfcDateAndTime *v)¶
-
bool
hasRateSource
() const¶ Whether the optional attribute RateSource is defined for this IfcCurrencyRelationship.
-
::Ifc2x3::IfcLibraryInformation *
RateSource
() const¶ The source from which an exchange rate is obtained.
-
void
setRateSource
(::Ifc2x3::IfcLibraryInformation *v)¶
-
IfcCurrencyRelationship
(IfcEntityInstanceData *e)¶
-
IfcCurrencyRelationship
(::Ifc2x3::IfcMonetaryUnit *v1_RelatingMonetaryUnit, ::Ifc2x3::IfcMonetaryUnit *v2_RelatedMonetaryUnit, double v3_ExchangeRate, ::Ifc2x3::IfcDateAndTime *v4_RateDateTime, ::Ifc2x3::IfcLibraryInformation *v5_RateSource)¶
-
typedef IfcTemplatedEntityList<IfcCurrencyRelationship>