eFinancialPlanner  V1.0 (proof of concept)
Personal Financial Planning based on Maslowian Portfolio Theory
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
cls_currency Class Reference

Public Member Functions

string dropDown_currency (string defaultCurr="EUR")
 
bool set_curr (string the_curr)
 
float to_curr (float amnt, string the_curr)
 
float conversion_factor (string from_curr, string to_curr)
 

Public Attributes

string entity
 
string currency_name
 
string currency_id
 eg. EUR, USD, etc. More...
 

Detailed Description

Definition at line 1 of file currency.class.cpp.

Member Function Documentation

float cls_currency::conversion_factor ( string  from_curr,
string  to_curr 
)
string cls_currency::dropDown_currency ( string  defaultCurr = "EUR")

Definition at line 20 of file currency.class.cpp.

bool cls_currency::set_curr ( string  the_curr)

set_curr

checks if the currency_id give n is a valid currency, if yes currency_id is set and true returned

Definition at line 41 of file currency.class.cpp.

float cls_currency::to_curr ( float  amnt,
string  to_curr 
)
inline

to_curr

converts a given amount to the given currency

step 1: convert to EUR

step 2: if necessary convert from EUR to another currency

step 3: return the result

Definition at line 67 of file currency.class.cpp.

Member Data Documentation

string cls_currency::currency_id

eg. EUR, USD, etc.

Definition at line 7 of file currency.class.cpp.

string cls_currency::currency_name

Definition at line 6 of file currency.class.cpp.

string cls_currency::entity

Definition at line 5 of file currency.class.cpp.


The documentation for this class was generated from the following file: