[QuantLibAddin-cvs] QuantLibAddin/Addins/Calc manual.cpp,1.1,1.2
Brought to you by:
ericehlers,
nando
|
From: Eric E. <eri...@us...> - 2006-10-09 07:28:57
|
Update of /cvsroot/quantlibaddin/QuantLibAddin/Addins/Calc In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4559/Addins/Calc Modified Files: manual.cpp Log Message: fix carriage returns Index: manual.cpp =================================================================== RCS file: /cvsroot/quantlibaddin/QuantLibAddin/Addins/Calc/manual.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** manual.cpp 7 Oct 2006 12:44:57 -0000 1.1 --- manual.cpp 9 Oct 2006 07:28:50 -0000 1.2 *************** *** 1,91 **** ! #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; ! } ! } ! --- 1,90 ---- ! #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; ! } ! } |