[Rquantlib-commits] r236 - pkg/RQuantLib/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Fri Apr 30 04:35:22 CEST 2010
Author: edd
Date: 2010-04-30 04:35:22 +0200 (Fri, 30 Apr 2010)
New Revision: 236
Modified:
pkg/RQuantLib/src/calendars.cpp
Log:
added South Korea and Brazil
Modified: pkg/RQuantLib/src/calendars.cpp
===================================================================
--- pkg/RQuantLib/src/calendars.cpp 2010-04-29 15:34:45 UTC (rev 235)
+++ pkg/RQuantLib/src/calendars.cpp 2010-04-30 02:35:22 UTC (rev 236)
@@ -43,6 +43,9 @@
if (calstr == "TARGET") { // generic calendar
pcal = new TARGET();
+ } else if (calstr == "Brazil") {
+ pcal = new Brazil();
+
} else if (calstr == "Canada" || calstr == "Canada/Settlement") {
pcal = new Canada(Canada::Settlement);
} else if (calstr == "Canada/TSX") {
@@ -62,9 +65,14 @@
} else if (calstr == "Italy/Exchange") {
pcal = new Italy(Italy::Exchange);
- } else if (calstr == "Japan") {
+ } else if (calstr == "Japan" || calstr == "Japan/Settlement") {
pcal = new Japan();
+ } else if (calstr == "SouthKorea" || calstr == "SouthKorea/Settlement") {
+ pcal = new SouthKorea(SouthKorea::Settlement);
+ } else if (calstr == "SouthKorea/KRX") {
+ pcal = new SouthKorea(SouthKorea::KRX);
+
} else if (calstr == "UnitedKingdom" || calstr == "UnitedKingdom/Settlement") {
pcal = new UnitedKingdom(UnitedKingdom::Settlement);
} else if (calstr == "UnitedKingdom/Exchange") {
More information about the Rquantlib-commits
mailing list