Update of /cvsroot/quantlibaddin/QuantLibAddin/Addins/C
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13706/Addins/C
Modified Files:
Tag: R000313f0-branch
AddinC_vc8.vcproj Makefile.am qladdin.h varies.cpp varies.h
Added Files:
Tag: R000313f0-branch
auto_link.h
Removed Files:
Tag: R000313f0-branch
session.cpp
Log Message:
update C client
--- NEW FILE: auto_link.h ---
/*
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_c_autolink_hpp
#define qla_c_autolink_hpp
// select toolset:
#if (_MSC_VER < 1300)
# error "unsupported Microsoft compiler"
#elif (_MSC_VER == 1300)
# define LIB_TOOLSET "vc7"
#elif (_MSC_VER == 1310)
# define LIB_TOOLSET "vc71"
#elif (_MSC_VER == 1400)
# define LIB_TOOLSET "vc80"
#else
# error "unknown Microsoft compiler"
#endif
/*** libraries to be linked ***/
// select thread opt:
#ifdef _MT
# define LIB_THREAD_OPT "-mt"
#else
# define LIB_THREAD_OPT
#endif
// select linkage opt:
#ifdef _DLL
# if defined(_DEBUG)
# define LIB_RT_OPT "-gd"
# else
# define LIB_RT_OPT
# endif
#else
# if defined(_DEBUG)
# define LIB_RT_OPT "-sgd"
# else
# define LIB_RT_OPT "-s"
# endif
#endif
#define OH_LIB_NAME "ObjectHandler-" LIB_TOOLSET LIB_THREAD_OPT LIB_RT_OPT "-0_1_4.lib"
#define QL_LIB_NAME "QuantLib-" LIB_TOOLSET LIB_THREAD_OPT LIB_RT_OPT "-0_3_13.lib"
#pragma message("Linking to lib file: " OH_LIB_NAME)
#pragma comment(lib, OH_LIB_NAME)
#pragma message("Linking to lib file: " QL_LIB_NAME)
#pragma comment(lib, QL_LIB_NAME)
#endif
Index: AddinC_vc8.vcproj
===================================================================
RCS file: /cvsroot/quantlibaddin/QuantLibAddin/Addins/C/AddinC_vc8.vcproj,v
retrieving revision 1.3.2.2
retrieving revision 1.3.2.3
diff -C2 -d -r1.3.2.2 -r1.3.2.3
*** AddinC_vc8.vcproj 9 Aug 2006 11:02:12 -0000 1.3.2.2
--- AddinC_vc8.vcproj 9 Aug 2006 12:50:53 -0000 1.3.2.3
***************
*** 335,338 ****
--- 335,342 ----
</File>
<File
+ RelativePath=".\ohfunctions.cpp"
+ >
+ </File>
+ <File
RelativePath="options.cpp"
>
***************
*** 351,358 ****
</File>
<File
- RelativePath="session.cpp"
- >
- </File>
- <File
RelativePath="varies.cpp"
>
--- 355,358 ----
***************
*** 368,371 ****
--- 368,375 ----
>
<File
+ RelativePath=".\auto_link.h"
+ >
+ </File>
+ <File
RelativePath="conversions.hpp"
>
***************
*** 380,383 ****
--- 384,391 ----
</File>
<File
+ RelativePath=".\ohfunctions.h"
+ >
+ </File>
+ <File
RelativePath="options.h"
>
Index: varies.h
===================================================================
RCS file: /cvsroot/quantlibaddin/QuantLibAddin/Addins/C/varies.h,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** varies.h 19 May 2006 16:56:16 -0000 1.1
--- varies.h 9 Aug 2006 12:50:53 -0000 1.1.2.1
***************
*** 52,55 ****
--- 52,56 ----
void freeVaries(Varies *vl);
+ void initialize();
#endif
--- session.cpp DELETED ---
Index: Makefile.am
===================================================================
RCS file: /cvsroot/quantlibaddin/QuantLibAddin/Addins/C/Makefile.am,v
retrieving revision 1.2.2.2
retrieving revision 1.2.2.3
diff -C2 -d -r1.2.2.2 -r1.2.2.3
*** Makefile.am 9 Aug 2006 10:46:37 -0000 1.2.2.2
--- Makefile.am 9 Aug 2006 12:50:53 -0000 1.2.2.3
***************
*** 16,19 ****
--- 16,20 ----
if BUILD_C
noinst_HEADERS = \
+ auto_link.h \
conversions.hpp \
defines.h \
***************
*** 36,40 ****
pricingengines.cpp \
processes.cpp \
- session.cpp \
varies.cpp \
volatilities.cpp
--- 37,40 ----
Index: qladdin.h
===================================================================
RCS file: /cvsroot/quantlibaddin/QuantLibAddin/Addins/C/qladdin.h,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** qladdin.h 19 May 2006 16:56:16 -0000 1.1
--- qladdin.h 9 Aug 2006 12:50:53 -0000 1.1.2.1
***************
*** 1,5 ****
/*
! Copyright (C) 2004 Eric Ehlers
This file is part of QuantLib, a free-software/open-source library
--- 1,5 ----
/*
! Copyright (C) 2004, 2005, 2006 Eric Ehlers
This file is part of QuantLib, a free-software/open-source library
***************
*** 22,36 ****
#include <Addins/C/varies.h>
- #include <Addins/C/capfloor.h>
#include <Addins/C/exercise.h>
- #include <Addins/C/instruments.h>
#include <Addins/C/ohfunctions.h>
#include <Addins/C/options.h>
#include <Addins/C/processes.h>
- #include <Addins/C/shortratemodels.h>
- #include <Addins/C/termstructures.h>
- #include <Addins/C/utilities.h>
#include <Addins/C/volatilities.h>
#endif
--- 22,37 ----
#include <Addins/C/varies.h>
#include <Addins/C/exercise.h>
#include <Addins/C/ohfunctions.h>
#include <Addins/C/options.h>
+ #include <Addins/C/payoffs.h>
+ #include <Addins/C/pricingengines.h>
#include <Addins/C/processes.h>
#include <Addins/C/volatilities.h>
+ #ifdef WIN32
+ #include <Addins/C/auto_link.h>
+ #endif
+
#endif
Index: varies.cpp
===================================================================
RCS file: /cvsroot/quantlibaddin/QuantLibAddin/Addins/C/varies.cpp,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** varies.cpp 19 May 2006 16:56:16 -0000 1.1
--- varies.cpp 9 Aug 2006 12:50:53 -0000 1.1.2.1
***************
*** 19,25 ****
}
#include <Addins/C/varies.hpp>
!
#include <ql/Patterns/singleton.hpp>
// code stub for unsupported sessions functionality
--- 19,30 ----
}
#include <Addins/C/varies.hpp>
! #include <oh/objhandler.hpp>
#include <ql/Patterns/singleton.hpp>
+ void initialize() {
+ // instantiate the objecthandler singleton
+ static ObjHandler::ObjectHandler oh;
+ }
+
// code stub for unsupported sessions functionality
|