Update of /cvsroot/quantlibaddin/QuantLibAddin/Addins/Guile
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv9143/Addins/Guile
Modified Files:
Tag: R000313f0-branch
.cvsignore Makefile.am extra.cpp guileutils.hpp
Added Files:
Tag: R000313f0-branch
conversions.cpp conversions.hpp
Log Message:
update Guile addin
Index: .cvsignore
===================================================================
RCS file: /cvsroot/quantlibaddin/QuantLibAddin/Addins/Guile/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** .cvsignore 19 May 2006 16:56:16 -0000 1.1
--- .cvsignore 9 Aug 2006 19:56:56 -0000 1.1.2.1
***************
*** 1,10 ****
basic.*
- date.*
calendar.*
- daycounter.*
- mathf.*
- prices.*
capfloor.*
couponvectors.*
.deps
exercise.*
--- 1,9 ----
+
basic.*
calendar.*
capfloor.*
couponvectors.*
+ date.*
+ daycounter.*
.deps
exercise.*
***************
*** 16,22 ****
--- 15,25 ----
Makefile
Makefile.in
+ mathf.*
objecthandler.h
ohfunctions.*
options.*
+ payoffs.*
+ prices.*
+ pricingengines.*
processes.*
qladdin.c
***************
*** 30,32 ****
volatilities.*
xibor.*
-
--- 33,34 ----
--- NEW FILE: conversions.hpp ---
/*
Copyright (C) 2006 Eric Ehlers
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or modify it under the
terms of the QuantLib license. You should have received a copy of the
license along with this program; if not, please email qua...@li...
The license is also available online at http://quantlib.org/html/license.html
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the license for more details.
*/
#ifndef qla_guile_conversions_hpp
#define qla_guile_conversions_hpp
#include <ql/date.hpp>
void cppToLib(QuantLib::Date &, const long &);
#endif
Index: guileutils.hpp
===================================================================
RCS file: /cvsroot/quantlibaddin/QuantLibAddin/Addins/Guile/guileutils.hpp,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** guileutils.hpp 19 May 2006 16:56:16 -0000 1.1
--- guileutils.hpp 9 Aug 2006 19:56:56 -0000 1.1.2.1
***************
*** 21,28 ****
#include <guile/gh.h>
-
#include <boost/any.hpp>
#include <ql/errors.hpp>
#include <oh/objhandler.hpp>
SCM anyToPairValue(const boost::any& a);
--- 21,28 ----
#include <guile/gh.h>
#include <boost/any.hpp>
#include <ql/errors.hpp>
#include <oh/objhandler.hpp>
+ #include <string>
SCM anyToPairValue(const boost::any& a);
--- NEW FILE: conversions.cpp ---
/*
Copyright (C) 2006 Eric Ehlers
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or modify it under the
terms of the QuantLib license. You should have received a copy of the
license along with this program; if not, please email qua...@li...
The license is also available online at http://quantlib.org/html/license.html
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the license for more details.
*/
#include <Addins/Guile/conversions.hpp>
void cppToLib(QuantLib::Date &ret, const long &in) {
ret = QuantLib::Date(in);
}
Index: Makefile.am
===================================================================
RCS file: /cvsroot/quantlibaddin/QuantLibAddin/Addins/Guile/Makefile.am,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** Makefile.am 5 Aug 2006 15:44:44 -0000 1.1.2.1
--- Makefile.am 9 Aug 2006 19:56:56 -0000 1.1.2.2
***************
*** 2,6 ****
AM_CPPFLAGS = -I${top_srcdir}
AM_LDFLAGS = -release $(PACKAGE_VERSION)
! includedir = $(prefix)/include/qla/Addins/Guile
if BUILD_GUILE
--- 2,6 ----
AM_CPPFLAGS = -I${top_srcdir}
AM_LDFLAGS = -release $(PACKAGE_VERSION)
! includedir = $(prefix)/include/qlo/Addins/Guile
if BUILD_GUILE
***************
*** 10,28 ****
endif
! libQuantLibAddinGuile_la_LIBADD = ../../qla/libQuantLibAddin.la
if BUILD_GUILE
noinst_HEADERS = \
! extra.h
!
! include_HEADERS = \
! guileutils.hpp
endif
if BUILD_GUILE
libQuantLibAddinGuile_la_SOURCES = \
extra.cpp \
guileutils.cpp \
! session.cpp
endif
--- 10,42 ----
endif
! libQuantLibAddinGuile_la_LIBADD = ../../qlo/libQuantLibAddin.la
if BUILD_GUILE
noinst_HEADERS = \
! conversions.hpp \
! exercise.h \
! extra.h \
! guileutils.hpp \
! ohfunctions.h \
! options.h \
! payoffs.h \
! pricingengines.h \
! processes.h \
! volatilities.h
endif
if BUILD_GUILE
libQuantLibAddinGuile_la_SOURCES = \
+ conversions.cpp \
+ exercise.cpp \
extra.cpp \
guileutils.cpp \
! ohfunctions.cpp \
! options.cpp \
! payoffs.cpp \
! pricingengines.cpp \
! processes.cpp \
! session.cpp \
! volatilities.cpp
endif
Index: extra.cpp
===================================================================
RCS file: /cvsroot/quantlibaddin/QuantLibAddin/Addins/Guile/extra.cpp,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** extra.cpp 19 May 2006 16:56:16 -0000 1.1
--- extra.cpp 9 Aug 2006 19:56:56 -0000 1.1.2.1
***************
*** 17,25 ****
#include <ql/date.hpp>
! #include <qla/qladdin.hpp>
#include <Addins/Guile/guileutils.hpp>
extern "C" {
#include <Addins/Guile/extra.h>
- #include <Addins/Guile/utilities.h>
}
--- 17,25 ----
#include <ql/date.hpp>
! #include <ql/Utilities/strings.hpp>
! #include <qlo/qladdin.hpp>
#include <Addins/Guile/guileutils.hpp>
extern "C" {
#include <Addins/Guile/extra.h>
}
|