Update of /cvsroot/quantlibaddin/QuantLibAddin/Addins/Calc
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv3087/Addins/Calc
Modified Files:
Makefile.am
Added Files:
manual.cpp
Log Message:
linux catching up
--- NEW FILE: manual.cpp ---
#include <qlo/qladdindefines.hpp>
#include <qlo/typefactory.hpp>
#include <qlo/conversions.hpp>
#include <oh/objecthandler.hpp>
#include <Addins/Calc/qladdin.hpp>
#include <Addins/Calc/calcutils.hpp>
#include <Addins/Calc/conversions.hpp>
sal_Int32 SAL_CALL QLAddin::ohDependsOn(
const ANY &dummy0,
const ANY &dummy1,
const ANY &dummy2,
const ANY &dummy3,
const ANY &dummy4,
const ANY &dummy5,
const ANY &dummy6,
const ANY &dummy7,
const ANY &dummy8,
const ANY &dummy9,
const ANY &trigger) THROWDEF_RTE_IAE {
long returnValue = 1;
return returnValue;
}
SEQSEQ(STRING) SAL_CALL QLAddin::ohPropertyNames(
const STRING &objectID,
const ANY &trigger) THROWDEF_RTE_IAE {
try {
// convert input datatypes to C++ datatypes
std::string objectIDCpp = ouStringToStlString(objectID);
// convert object IDs into library objects
OH_GET_OBJECT(objectIDObj, objectIDCpp, ObjHandler::Object)
// invoke the member function
std::vector<std::string> returnValue = objectIDObj->propertyNames();
// convert and return the return value
/* no VO - not a constructor*/
SEQSEQ(STRING) returnValueCalc;
vectorToCalc(returnValueCalc, returnValue);
return returnValueCalc;
} catch (const std::exception &e) {
ObjHandler::logMessage(std::string("ERROR: ohPropertyNames: ") + e.what(), 2);
THROW_RTE;
}
}
ANY SAL_CALL QLAddin::ohPropertyValue(
const STRING &objectID,
const STRING &fieldName,
const ANY &trigger) THROWDEF_RTE_IAE {
try {
// convert input datatypes to C++ datatypes
std::string objectIDCpp = ouStringToStlString(objectID);
std::string fieldNameCpp = ouStringToStlString(fieldName);
// convert object IDs into library objects
OH_GET_OBJECT(objectIDObj, objectIDCpp, ObjHandler::Object)
// invoke the member function
boost::any returnValue = objectIDObj->propertyValue(
fieldNameCpp);
// convert and return the return value
/* no VO - not a constructor*/
ANY returnValueCalc;
scalarToCalc(returnValueCalc, returnValue);
return returnValueCalc;
} catch (const std::exception &e) {
ObjHandler::logMessage(std::string("ERROR: ohPropertyValue: ") + e.what(), 2);
THROW_RTE;
}
}
Index: Makefile.am
===================================================================
RCS file: /cvsroot/quantlibaddin/QuantLibAddin/Addins/Calc/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Makefile.am 6 Oct 2006 12:08:13 -0000 1.3
--- Makefile.am 7 Oct 2006 12:44:57 -0000 1.4
***************
*** 65,68 ****
--- 65,69 ----
exercise.hpp \
instruments.hpp \
+ mathf.hpp \
ohfunctions.hpp \
options.hpp \
***************
*** 73,76 ****
--- 74,79 ----
qladdin.hpp \
qldefs.hpp \
+ settings.hpp \
+ utilities.hpp \
volatilities.hpp
endif
***************
*** 82,85 ****
--- 85,90 ----
funcdef.cpp \
instruments.cpp \
+ manual.cpp \
+ mathf.cpp \
ohfunctions.cpp \
options.cpp \
***************
*** 87,92 ****
--- 92,99 ----
pricingengines.cpp \
processes.cpp \
+ utilities.cpp \
qladdin.cpp \
session.cpp \
+ settings.cpp \
volatilities.cpp
|