#include <stock.h>
Inheritance diagram for Stock:


Public Member Functions | |
| Stock () | |
| Stock (const string &name, const string &wkn, const string &buyingDate, const int &Amount, const float &buyRate, const float &purchaseCost, const float ¤tMarketPrice) | |
| Stock (const string &name, const string &wkn, const string &buyingDate, const int &Amount, const float &buyRate, const float &purchaseCost, const float ¤tMarketPrice, const vector< float > &values) | |
| Stock (const Stock &stock) | |
| ~Stock () | |
| string | getName () const |
| string | getWkn () const |
| string | getBuyingDate () const |
| int | getAmount () const |
| float | getBuyingRate () const |
| float | getPurchaseCost () const |
| float | getCurrentMarketPrice () const |
| float | getCurrentMarketPriceDayBefore () const |
| vector< float > | getValuesVector () const |
| void | setName (const string &name) |
| void | setWkn (const string &wkn) |
| void | setBuyingDate (const string &buyingDate) |
| void | setAmount (const int &Amount) |
| void | setBuyingRate (const float &buyingRate) |
| void | setPurchaseCost (const float &purchaseCost) |
| void | setCurrentMarketPrice (const float &CurrentMarketPrice) |
| void | setCurrentMarketPriceDayBefore (const float &CurrentMarketPriceDayBefore) |
Friends | |
| int | operator!= (const Stock &x, const Stock &y) |
| int | operator== (const Stock &x, const Stock &y) |
| bool | operator< (const Stock &x, const Stock &y) |
Definition at line 32 of file stock.h.
|
|
constructor. |
|
||||||||||||||||||||||||||||||||
|
constructor.
|
|
||||||||||||||||||||||||||||||||||||
|
constructor.
|
|
|
copy constructor. Definition at line 87 of file stock.cpp. References getAmount(), getBuyingDate(), getBuyingRate(), getCurrentMarketPrice(), getCurrentMarketPriceDayBefore(), getName(), getPurchaseCost(), getValuesVector(), and getWkn(). |
|
|
destructor Definition at line 108 of file stock.cpp. References Subject::detachAllObservers(). |
|
|
Returns the number of stocks.
Definition at line 140 of file stock.cpp. Referenced by Stock(), SummaryDialog::SummaryDialog(), and StockGui::update(). |
|
|
Returns the stock buying date.
Definition at line 133 of file stock.cpp. Referenced by Stock(), and StockGui::update(). |
|
|
Returns the stock buying rate.
Definition at line 147 of file stock.cpp. Referenced by Stock(), SummaryDialog::SummaryDialog(), and StockGui::update(). |
|
|
Returns the stock current market price.
Definition at line 161 of file stock.cpp. Referenced by Stock(), SummaryDialog::SummaryDialog(), and StockGui::update(). |
|
|
Returns the stock yesterdays current market price.
Definition at line 169 of file stock.cpp. Referenced by Stock(). |
|
|
Returns the stock name.
Definition at line 119 of file stock.cpp. Referenced by StockMarket::removeStock(), Stock(), and StockGui::update(). |
|
|
Returns the stock purchase cost.
Definition at line 154 of file stock.cpp. Referenced by Stock(), SummaryDialog::SummaryDialog(), and StockGui::update(). |
|
|
Returns the stock values vector.
Definition at line 176 of file stock.cpp. Referenced by Stock(). |
|
|
Returns the stock wkn or id.
Definition at line 126 of file stock.cpp. Referenced by Stock(), and StockGui::update(). |
|
|
Sets the number stock s.
Definition at line 207 of file stock.cpp. References Subject::notify(). |
|
|
Sets the stock buying date.
Definition at line 199 of file stock.cpp. References Subject::notify(). |
|
|
Sets the stock buying rate.
Definition at line 215 of file stock.cpp. References Subject::notify(). |
|
|
Sets the stock current market price.
Definition at line 231 of file stock.cpp. References Subject::notify(). |
|
|
Sets the stock yesterdays current market price.
Definition at line 239 of file stock.cpp. References Subject::notify(). |
|
|
Sets the stock name.
Definition at line 183 of file stock.cpp. References Subject::notify(). |
|
|
Sets the stock purchase cost.
Definition at line 223 of file stock.cpp. References Subject::notify(). |
|
|
Sets the stock wkn or id.
Definition at line 191 of file stock.cpp. References Subject::notify(). |
|
||||||||||||
|
!= operator (x != y)
|
|
||||||||||||
|
< operator (x < y)
|
|
||||||||||||
|
== operator (x == y)
|
1.3-rc3