#include <importData.h>
Public Member Functions | |
importData (void) | |
constructor with a reference to local files - need for default data import | |
importData (char *argv) | |
constructor with a reference to local files - need for default data import | |
bool | runInterface () |
default user interface for data import | |
Natural | displayFileFormatsMenu () |
Help output on the file format needed to import. | |
bool | runUserDefinedInterface () |
User interface to input the data files. | |
void | importYieldCurve (string path="yctest.csv") |
Import the yield curve from the file. | |
void | importVolSurface (string path="voltest2.csv", Real spot=2994.0) |
Import the call/put points from the file. | |
void | importCreditCurve (string path="ccspread.csv") |
Import the credit spreads from the file. | |
marketData | getData () |
yieldCurve | getYieldCurve () |
creditCurve | getCreditCurve () |
volsurface | getVolatilitySurface () |
Private Member Functions | |
void | setMarketData () |
Private Attributes | |
string | _datadir |
yieldCurve | _yc |
creditCurve | _cc |
volsurface | _vs |
marketData | _marketData |
|
constructor with a reference to local files - need for default data import
Definition at line 3 of file importData.cpp. |
|
constructor with a reference to local files - need for default data import
Definition at line 7 of file importData.cpp. References runInterface(), and FileReader::setdatadir(). |
|
Help output on the file format needed to import.
Definition at line 132 of file importData.cpp. References Natural. Referenced by runInterface(). |
|
Definition at line 57 of file importData.h. References _cc. |
|
Definition at line 55 of file importData.h. References _marketData. Referenced by inputExoticOptionOnSingleAsset(). |
|
Definition at line 58 of file importData.h. References _vs. |
|
Definition at line 56 of file importData.h. References _yc. |
|
Import the credit spreads from the file.
Definition at line 36 of file importData.cpp. References _cc, _yc, and FileReader::buildCreditSpreadPointArray(). Referenced by runInterface(), and runUserDefinedInterface(). |
|
Import the call/put points from the file.
Definition at line 23 of file importData.cpp. References _vs, _yc, FileReader::buildVolSurfaceParams(), Real, Date::setDateToToday(), and volsurface::setvolsurface(). Referenced by runInterface(), and runUserDefinedInterface(). |
|
Import the yield curve from the file.
Definition at line 13 of file importData.cpp. References _yc, and FileReader::buildYieldPointArray(). Referenced by runInterface(), and runUserDefinedInterface(). |
|
default user interface for data import
Definition at line 45 of file importData.cpp. References displayFileFormatsMenu(), FileReader::getdatadirasstring(), importCreditCurve(), importVolSurface(), importYieldCurve(), Natural, runUserDefinedInterface(), and setMarketData(). Referenced by importData(). |
|
User interface to input the data files.
Definition at line 80 of file importData.cpp. References FileReader::fileexists(), FileReader::getdatadirasstring(), importCreditCurve(), importVolSurface(), importYieldCurve(), Real, and setMarketData(). Referenced by inputExoticOptionOnSingleAsset(), and runInterface(). |
|
Definition at line 74 of file importData.cpp. References _cc, _marketData, _vs, _yc, marketData::creditcurve, marketData::vols, and marketData::yieldcurve. Referenced by runInterface(), and runUserDefinedInterface(). |
|
Definition at line 32 of file importData.h. Referenced by getCreditCurve(), importCreditCurve(), and setMarketData(). |
|
Definition at line 30 of file importData.h. |
|
Definition at line 34 of file importData.h. Referenced by getData(), and setMarketData(). |
|
Definition at line 33 of file importData.h. Referenced by getVolatilitySurface(), importVolSurface(), and setMarketData(). |
|
Definition at line 31 of file importData.h. Referenced by getYieldCurve(), importCreditCurve(), importVolSurface(), importYieldCurve(), and setMarketData(). |