pCon.planner Plugin SDK  Version 8.8.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events
Public Member Functions | Public Attributes | List of all members
X3g::Plugin::Currency Class Reference

Currency class. More...

Public Member Functions

 Currency ()
 Default constructor. More...
 
 Currency (String^ pUnit, Decimal pValue)
 Constructor to initialize the unit and the value. More...
 
 Currency (Currency^ pOther)
 Copy constructor. More...
 
bool IsRelative ()
 Returns true if the currency represents a relative value. More...
 
void SetRelative ()
 Changes the unit to relative. More...
 

Public Attributes

StringUnit
 The currency unit. More...
 
Decimal Value
 The currency value. More...
 

Detailed Description

Currency class.

Constructor & Destructor Documentation

X3g::Plugin::Currency::Currency ( )

Default constructor.

Unit = null, Value = 0

X3g::Plugin::Currency::Currency ( String pUnit,
Decimal  pValue 
)

Constructor to initialize the unit and the value.

X3g::Plugin::Currency::Currency ( Currency pOther)

Copy constructor.

Member Function Documentation

bool X3g::Plugin::Currency::IsRelative ( )

Returns true if the currency represents a relative value.

(Unit = "%")

void X3g::Plugin::Currency::SetRelative ( )

Changes the unit to relative.

(Unit = "%")

Member Data Documentation

String ^ X3g::Plugin::Currency::Unit

The currency unit.

Contains a 3 letter ISO currency code. If the Unit is equal to "%" then this currency represents a relative value. (e.g. for discounts)

Decimal X3g::Plugin::Currency::Value

The currency value.