objecthandler-cvs Mailing List for ObjectHandler (Page 4)
Brought to you by:
ericehlers,
nando
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(115) |
Jun
(109) |
Jul
(85) |
Aug
(49) |
Sep
(19) |
Oct
(105) |
Nov
(16) |
Dec
(43) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(63) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Eric E. <eri...@us...> - 2006-12-13 17:56:40
|
Update of /cvsroot/objecthandler/ObjectHandler/Docs In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22259/Docs Modified Files: Tag: R000105f0-branch Makefile.am Log Message: fixes for release Index: Makefile.am =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/Docs/Makefile.am,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** Makefile.am 4 Oct 2006 12:04:56 -0000 1.4 --- Makefile.am 13 Dec 2006 17:56:32 -0000 1.4.2.1 *************** *** 69,72 **** --- 69,77 ---- touch .time-stamp-online + docs-online-dist: docs-online + ln -s html-online ObjectHandler-docs-$(VERSION)-html + tar czfvh ObjectHandler-docs-online-$(VERSION)-html.tar.gz ObjectHandler-docs-$(VERSION)-html + rm ObjectHandler-docs-$(VERSION)-html + docs-clean: rm -Rf html-online html |
From: Eric E. <eri...@us...> - 2006-12-12 15:04:22
|
Update of /cvsroot/objecthandler/ObjectHandler/gensrc/metadata In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv14365/gensrc/metadata Modified Files: ohutils.xml Log Message: use ,; as default delimiters for ohSplit() Index: ohutils.xml =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/gensrc/metadata/ohutils.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ohutils.xml 12 Dec 2006 12:25:19 -0000 1.4 --- ohutils.xml 12 Dec 2006 15:04:19 -0000 1.5 *************** *** 165,170 **** <description>text to be parsed</description> </Parameter> ! <!--<Parameter name='delim' default='",;"'>--> ! <Parameter name='delim' default='"[:space:]"'> <type>string</type> <tensorRank>scalar</tensorRank> --- 165,169 ---- <description>text to be parsed</description> </Parameter> ! <Parameter name='delim' default='",;"'> <type>string</type> <tensorRank>scalar</tensorRank> |
From: Eric E. <eri...@us...> - 2006-12-12 15:04:22
|
Update of /cvsroot/objecthandler/ObjectHandler/ohxl/Functions In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv14365/ohxl/Functions Modified Files: manual.cpp Log Message: use ,; as default delimiters for ohSplit() Index: manual.cpp =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/ohxl/Functions/manual.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** manual.cpp 11 Dec 2006 13:12:37 -0000 1.12 --- manual.cpp 12 Dec 2006 15:04:19 -0000 1.13 *************** *** 215,219 **** std::string delim = ! ObjHandler::operToScalar<std::string>(*delimOper, "[:space:]", "delim"); // invoke the utility function --- 215,219 ---- std::string delim = ! ObjHandler::operToScalar<std::string>(*delimOper, ",;", "delim"); // invoke the utility function |
From: Ferdinando A. <na...@us...> - 2006-12-12 12:25:23
|
Update of /cvsroot/objecthandler/ObjectHandler/gensrc/metadata In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15350/gensrc/metadata Modified Files: ohutils.xml Log Message: trying to change the default delimiter.... Eric: would you please look why it doesn't work? thx Index: ohutils.xml =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/gensrc/metadata/ohutils.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ohutils.xml 11 Dec 2006 13:12:37 -0000 1.3 --- ohutils.xml 12 Dec 2006 12:25:19 -0000 1.4 *************** *** 165,172 **** <description>text to be parsed</description> </Parameter> <Parameter name='delim' default='"[:space:]"'> <type>string</type> <tensorRank>scalar</tensorRank> ! <description>delimiter (default = whitespace)</description> </Parameter> <Parameter name='index' default='-1'> --- 165,173 ---- <description>text to be parsed</description> </Parameter> + <!--<Parameter name='delim' default='",;"'>--> <Parameter name='delim' default='"[:space:]"'> <type>string</type> <tensorRank>scalar</tensorRank> ! <description>delimiter (default = \";,\")</description> </Parameter> <Parameter name='index' default='-1'> |
From: Eric E. <eri...@us...> - 2006-12-11 13:12:39
|
Update of /cvsroot/objecthandler/ObjectHandler/ohxl/Functions In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18372/ohxl/Functions Modified Files: manual.cpp Log Message: rename ohDependsOn() to ohTrigger() and refine behavior Index: manual.cpp =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/ohxl/Functions/manual.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** manual.cpp 8 Dec 2006 14:46:13 -0000 1.11 --- manual.cpp 11 Dec 2006 13:12:37 -0000 1.12 *************** *** 25,29 **** #include <ohxl/functioncall.hpp> #include <ohxl/Functions/functioncount.hpp> - //#include <sstream> #include <map> --- 25,28 ---- *************** *** 60,66 **** void validateReference(const XLOPER *xReference, const std::string &name) { ! if (xReference->xltype != xltypeMissing ! && xReference->xltype != xltypeRef ! && xReference->xltype != xltypeSRef) { std::ostringstream msg; msg << "parameter '" << name << "' is not a valid range reference"; --- 59,63 ---- void validateReference(const XLOPER *xReference, const std::string &name) { ! if (xReference->xltype == xltypeErr && xReference->val.err == xlerrRef) { std::ostringstream msg; msg << "parameter '" << name << "' is not a valid range reference"; *************** *** 69,91 **** } ! XLL_DEC long *ohDependsOn( ! XLOPER *dummy0, ! XLOPER *dummy1, ! XLOPER *dummy2, ! XLOPER *dummy3, ! XLOPER *dummy4, ! XLOPER *dummy5, ! XLOPER *dummy6, ! XLOPER *dummy7, ! XLOPER *dummy8, ! XLOPER *dummy9) { boost::shared_ptr<ObjHandler::FunctionCall> functionCall; try { - Excel(xlfVolatile,0,1,TempBool(0)); // initialize Function Call object functionCall = boost::shared_ptr<ObjHandler::FunctionCall> ! ( new ObjHandler::FunctionCall("ohDependsOn") ); if (functionCall->IsCalledByFuncWiz()) return 0; --- 66,89 ---- } ! XLL_DEC long *ohTrigger( ! OPER *dummy0, ! OPER *dummy1, ! OPER *dummy2, ! OPER *dummy3, ! OPER *dummy4, ! OPER *dummy5, ! OPER *dummy6, ! OPER *dummy7, ! OPER *dummy8, ! OPER *dummy9) { ! boost::shared_ptr<ObjHandler::FunctionCall> functionCall; + try { // initialize Function Call object functionCall = boost::shared_ptr<ObjHandler::FunctionCall> ! ( new ObjHandler::FunctionCall("ohTrigger") ); if (functionCall->IsCalledByFuncWiz()) return 0; *************** *** 109,115 **** static long returnValue; returnValue = iterators[ObjHandler::FunctionCall::instance().getAddressString()]++; - - // convert and return the return value - return &returnValue; --- 107,110 ---- *************** *** 120,163 **** } - void validateReference2(const XLOPER *xReference, const std::string &name) { - if (xReference->xltype == xltypeErr && xReference->val.err == xlerrRef) { - std::ostringstream msg; - msg << "parameter '" << name << "' is not a valid range reference"; - throw ObjHandler::Exception(msg.str()); - } - } - - XLL_DEC long *ohDependsOn2( - XLOPER *dummy0, - XLOPER *dummy1, - XLOPER *dummy2, - XLOPER *dummy3, - XLOPER *dummy4, - XLOPER *dummy5, - XLOPER *dummy6, - XLOPER *dummy7, - XLOPER *dummy8, - XLOPER *dummy9) { - try { - validateReference2(dummy0, "dummy0"); - validateReference2(dummy1, "dummy1"); - validateReference2(dummy2, "dummy2"); - validateReference2(dummy3, "dummy3"); - validateReference2(dummy4, "dummy4"); - validateReference2(dummy5, "dummy5"); - validateReference2(dummy6, "dummy6"); - validateReference2(dummy7, "dummy7"); - validateReference2(dummy8, "dummy8"); - validateReference2(dummy9, "dummy9"); - - static long returnValue = 0; - returnValue++; - return &returnValue; - } catch (const std::exception &e) { - ObjHandler::logMessage(e.what(), 2); - return 0; - } - } - XLL_DEC long *ohFunctionCount() { static long returnValue = FUNCTION_COUNT; --- 115,118 ---- |
From: Eric E. <eri...@us...> - 2006-12-11 13:12:39
|
Update of /cvsroot/objecthandler/ObjectHandler/gensrc/metadata In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18372/gensrc/metadata Modified Files: ohutils.xml Log Message: rename ohDependsOn() to ohTrigger() and refine behavior Index: ohutils.xml =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/gensrc/metadata/ohutils.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ohutils.xml 8 Dec 2006 14:46:12 -0000 1.2 --- ohutils.xml 11 Dec 2006 13:12:37 -0000 1.3 *************** *** 14,18 **** <Functions> ! <Procedure name='ohDependsOn' dependencyTrigger='false'> <description>forces a dependency between two functions and returns the update counter</description> <alias>ObjHandler::dependsOn</alias> --- 14,18 ---- <Functions> ! <Procedure name='ohTrigger' dependencyTrigger='false'> <description>forces a dependency between two functions and returns the update counter</description> <alias>ObjHandler::dependsOn</alias> *************** *** 23,92 **** <Parameters> <Parameter name='dummy0' ignore='true'> - <type>reference</type> - <tensorRank>scalar</tensorRank> - <description>dummy range reference (ignored)</description> - </Parameter> - <Parameter name='dummy1' ignore='true'> - <type>reference</type> - <tensorRank>scalar</tensorRank> - <description>dummy range reference (ignored)</description> - </Parameter> - <Parameter name='dummy2' ignore='true'> - <type>reference</type> - <tensorRank>scalar</tensorRank> - <description>dummy range reference (ignored)</description> - </Parameter> - <Parameter name='dummy3' ignore='true'> - <type>reference</type> - <tensorRank>scalar</tensorRank> - <description>dummy range reference (ignored)</description> - </Parameter> - <Parameter name='dummy4' ignore='true'> - <type>reference</type> - <tensorRank>scalar</tensorRank> - <description>dummy range reference (ignored)</description> - </Parameter> - <Parameter name='dummy5' ignore='true'> - <type>reference</type> - <tensorRank>scalar</tensorRank> - <description>dummy range reference (ignored)</description> - </Parameter> - <Parameter name='dummy6' ignore='true'> - <type>reference</type> - <tensorRank>scalar</tensorRank> - <description>dummy range reference (ignored)</description> - </Parameter> - <Parameter name='dummy7' ignore='true'> - <type>reference</type> - <tensorRank>scalar</tensorRank> - <description>dummy range reference (ignored)</description> - </Parameter> - <Parameter name='dummy8' ignore='true'> - <type>reference</type> - <tensorRank>scalar</tensorRank> - <description>dummy range reference (ignored)</description> - </Parameter> - <Parameter name='dummy9' ignore='true'> - <type>reference</type> - <tensorRank>scalar</tensorRank> - <description>dummy range reference (ignored)</description> - </Parameter> - </Parameters> - </ParameterList> - <ReturnValue> - <type>long</type> - <tensorRank>scalar</tensorRank> - </ReturnValue> - </Procedure> - - <Procedure name='ohDependsOn2' dependencyTrigger='false'> - <description>forces a dependency between two functions and returns the update counter</description> - <alias>ObjHandler::dependsOn</alias> - <SupportedPlatforms> - <Excel implementation='manual' xlMacro='false'/> - </SupportedPlatforms> - <ParameterList> - <Parameters> - <Parameter name='dummy0' ignore='true'> <type>any</type> <tensorRank>scalar</tensorRank> --- 23,26 ---- *************** *** 145,149 **** </ReturnValue> </Procedure> ! <Procedure name='ohFunctionCount'> <description>returns the number of functions in this addin</description> --- 79,83 ---- </ReturnValue> </Procedure> ! <Procedure name='ohFunctionCount'> <description>returns the number of functions in this addin</description> |
From: Eric E. <eri...@us...> - 2006-12-08 14:46:15
|
Update of /cvsroot/objecthandler/ObjectHandler/ohxl/Functions In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10559/ohxl/Functions Modified Files: manual.cpp Log Message: implement ohDependsOn2() as a possible replacement for ohDependsOn() Index: manual.cpp =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/ohxl/Functions/manual.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** manual.cpp 5 Dec 2006 11:55:18 -0000 1.10 --- manual.cpp 8 Dec 2006 14:46:13 -0000 1.11 *************** *** 59,62 **** --- 59,72 ---- } + void validateReference(const XLOPER *xReference, const std::string &name) { + if (xReference->xltype != xltypeMissing + && xReference->xltype != xltypeRef + && xReference->xltype != xltypeSRef) { + std::ostringstream msg; + msg << "parameter '" << name << "' is not a valid range reference"; + throw ObjHandler::Exception(msg.str()); + } + } + XLL_DEC long *ohDependsOn( XLOPER *dummy0, *************** *** 85,99 **** ObjHandler::ObjectHandlerXL::instance().resetCaller(); ! // invoke the utility function ! ObjHandler::validateReference(dummy0, "dummy0"); ! ObjHandler::validateReference(dummy1, "dummy1"); ! ObjHandler::validateReference(dummy2, "dummy2"); ! ObjHandler::validateReference(dummy3, "dummy3"); ! ObjHandler::validateReference(dummy4, "dummy4"); ! ObjHandler::validateReference(dummy5, "dummy5"); ! ObjHandler::validateReference(dummy6, "dummy6"); ! ObjHandler::validateReference(dummy7, "dummy7"); ! ObjHandler::validateReference(dummy8, "dummy8"); ! ObjHandler::validateReference(dummy9, "dummy9"); static std::map<std::string, long> iterators; --- 95,108 ---- ObjHandler::ObjectHandlerXL::instance().resetCaller(); ! validateReference(dummy0, "dummy0"); ! validateReference(dummy1, "dummy1"); ! validateReference(dummy2, "dummy2"); ! validateReference(dummy3, "dummy3"); ! validateReference(dummy4, "dummy4"); ! validateReference(dummy5, "dummy5"); ! validateReference(dummy6, "dummy6"); ! validateReference(dummy7, "dummy7"); ! validateReference(dummy8, "dummy8"); ! validateReference(dummy9, "dummy9"); static std::map<std::string, long> iterators; *************** *** 111,114 **** --- 120,163 ---- } + void validateReference2(const XLOPER *xReference, const std::string &name) { + if (xReference->xltype == xltypeErr && xReference->val.err == xlerrRef) { + std::ostringstream msg; + msg << "parameter '" << name << "' is not a valid range reference"; + throw ObjHandler::Exception(msg.str()); + } + } + + XLL_DEC long *ohDependsOn2( + XLOPER *dummy0, + XLOPER *dummy1, + XLOPER *dummy2, + XLOPER *dummy3, + XLOPER *dummy4, + XLOPER *dummy5, + XLOPER *dummy6, + XLOPER *dummy7, + XLOPER *dummy8, + XLOPER *dummy9) { + try { + validateReference2(dummy0, "dummy0"); + validateReference2(dummy1, "dummy1"); + validateReference2(dummy2, "dummy2"); + validateReference2(dummy3, "dummy3"); + validateReference2(dummy4, "dummy4"); + validateReference2(dummy5, "dummy5"); + validateReference2(dummy6, "dummy6"); + validateReference2(dummy7, "dummy7"); + validateReference2(dummy8, "dummy8"); + validateReference2(dummy9, "dummy9"); + + static long returnValue = 0; + returnValue++; + return &returnValue; + } catch (const std::exception &e) { + ObjHandler::logMessage(e.what(), 2); + return 0; + } + } + XLL_DEC long *ohFunctionCount() { static long returnValue = FUNCTION_COUNT; |
From: Eric E. <eri...@us...> - 2006-12-08 14:46:15
|
Update of /cvsroot/objecthandler/ObjectHandler/gensrc/metadata In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10559/gensrc/metadata Modified Files: ohutils.xml Log Message: implement ohDependsOn2() as a possible replacement for ohDependsOn() Index: ohutils.xml =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/gensrc/metadata/ohutils.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ohutils.xml 3 Dec 2006 21:08:46 -0000 1.1 --- ohutils.xml 8 Dec 2006 14:46:12 -0000 1.2 *************** *** 80,83 **** --- 80,149 ---- </Procedure> + <Procedure name='ohDependsOn2' dependencyTrigger='false'> + <description>forces a dependency between two functions and returns the update counter</description> + <alias>ObjHandler::dependsOn</alias> + <SupportedPlatforms> + <Excel implementation='manual' xlMacro='false'/> + </SupportedPlatforms> + <ParameterList> + <Parameters> + <Parameter name='dummy0' ignore='true'> + <type>any</type> + <tensorRank>scalar</tensorRank> + <description>dummy range reference (ignored)</description> + </Parameter> + <Parameter name='dummy1' ignore='true'> + <type>any</type> + <tensorRank>scalar</tensorRank> + <description>dummy range reference (ignored)</description> + </Parameter> + <Parameter name='dummy2' ignore='true'> + <type>any</type> + <tensorRank>scalar</tensorRank> + <description>dummy range reference (ignored)</description> + </Parameter> + <Parameter name='dummy3' ignore='true'> + <type>any</type> + <tensorRank>scalar</tensorRank> + <description>dummy range reference (ignored)</description> + </Parameter> + <Parameter name='dummy4' ignore='true'> + <type>any</type> + <tensorRank>scalar</tensorRank> + <description>dummy range reference (ignored)</description> + </Parameter> + <Parameter name='dummy5' ignore='true'> + <type>any</type> + <tensorRank>scalar</tensorRank> + <description>dummy range reference (ignored)</description> + </Parameter> + <Parameter name='dummy6' ignore='true'> + <type>any</type> + <tensorRank>scalar</tensorRank> + <description>dummy range reference (ignored)</description> + </Parameter> + <Parameter name='dummy7' ignore='true'> + <type>any</type> + <tensorRank>scalar</tensorRank> + <description>dummy range reference (ignored)</description> + </Parameter> + <Parameter name='dummy8' ignore='true'> + <type>any</type> + <tensorRank>scalar</tensorRank> + <description>dummy range reference (ignored)</description> + </Parameter> + <Parameter name='dummy9' ignore='true'> + <type>any</type> + <tensorRank>scalar</tensorRank> + <description>dummy range reference (ignored)</description> + </Parameter> + </Parameters> + </ParameterList> + <ReturnValue> + <type>long</type> + <tensorRank>scalar</tensorRank> + </ReturnValue> + </Procedure> + <Procedure name='ohFunctionCount'> <description>returns the number of functions in this addin</description> |
From: Eric E. <eri...@us...> - 2006-12-08 14:46:15
|
Update of /cvsroot/objecthandler/ObjectHandler/ohxl/Conversions In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10559/ohxl/Conversions Modified Files: validations.cpp validations.hpp Log Message: implement ohDependsOn2() as a possible replacement for ohDependsOn() Index: validations.hpp =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/ohxl/Conversions/validations.hpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** validations.hpp 19 Nov 2006 13:08:27 -0000 1.2 --- validations.hpp 8 Dec 2006 14:46:12 -0000 1.3 *************** *** 26,30 **** DLL_API void validateRange(const OPER *xRange, const std::string &name); - DLL_API void validateReference(const XLOPER *xReference, const std::string &name); DLL_API void stringToChar(char *c, const std::string &s); --- 26,29 ---- Index: validations.cpp =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/ohxl/Conversions/validations.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** validations.cpp 19 Nov 2006 16:00:34 -0000 1.2 --- validations.cpp 8 Dec 2006 14:46:12 -0000 1.3 *************** *** 44,57 **** } - DLL_API void validateReference(const XLOPER *xReference, const std::string &name) { - if (xReference->xltype != xltypeMissing - && xReference->xltype != xltypeRef - && xReference->xltype != xltypeSRef) { - std::ostringstream msg; - msg << "parameter '" << name << "' is not a valid range reference"; - throw Exception(msg.str()); - } - } - DLL_API void stringToChar(char *c, const std::string &value) { int len = __min(XL_MAX_STR_LEN - 1, value.length()); --- 44,47 ---- |
From: Eric E. <eri...@us...> - 2006-12-06 11:58:35
|
Update of /cvsroot/objecthandler/ObjectHandler/ohxl In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2143/ohxl Modified Files: rangereference.cpp Log Message: fix bug that was causing ohRetrieveError() to fail on workbooks containing a hyphen ("-") in the name Index: rangereference.cpp =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/ohxl/rangereference.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** rangereference.cpp 26 Oct 2006 11:29:50 -0000 1.2 --- rangereference.cpp 6 Dec 2006 11:58:31 -0000 1.3 *************** *** 39,43 **** // try to handle case where book name != sheet name static boost::regex r( ! "=?'?.*\\[([\\w\\s]+)(?:\\.XLS)?\\]([\\w\\s]+)'?!R(\\d*)C(\\d*)(?::R(\\d*)C(\\d*))?"); boost::smatch m; if (!boost::regex_match(addressUpper_, m, r)) --- 39,43 ---- // try to handle case where book name != sheet name static boost::regex r( ! "=?'?.*\\[([\\w\\s-]+)(?:\\.XLS)?\\]([\\w\\s]+)'?!R(\\d*)C(\\d*)(?::R(\\d*)C(\\d*))?"); boost::smatch m; if (!boost::regex_match(addressUpper_, m, r)) |
From: Eric E. <eri...@us...> - 2006-12-05 11:55:22
|
Update of /cvsroot/objecthandler/ObjectHandler/ohxl/Functions In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31818/ohxl/Functions Modified Files: manual.cpp Log Message: suppress volatile behavior for ohDependsOn() Index: manual.cpp =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/ohxl/Functions/manual.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** manual.cpp 3 Dec 2006 21:08:46 -0000 1.9 --- manual.cpp 5 Dec 2006 11:55:18 -0000 1.10 *************** *** 72,75 **** --- 72,76 ---- boost::shared_ptr<ObjHandler::FunctionCall> functionCall; try { + Excel(xlfVolatile,0,1,TempBool(0)); // initialize Function Call object |
From: Eric E. <eri...@us...> - 2006-12-03 21:08:51
|
Update of /cvsroot/objecthandler/ObjectHandler/ohxl/ohxllib In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3145/ohxl/ohxllib Modified Files: ohxllib.vcproj ohxllib_vc8.vcproj Log Message: rename ohParseFields() to ohSplit() and modify behavior: - no need to specify "DOUBLE/STRING" datatype - if index omitted, all fields returned as array Index: ohxllib_vc8.vcproj =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/ohxl/ohxllib/ohxllib_vc8.vcproj,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** ohxllib_vc8.vcproj 3 Dec 2006 14:35:03 -0000 1.17 --- ohxllib_vc8.vcproj 3 Dec 2006 21:08:46 -0000 1.18 *************** *** 497,538 **** </File> <File ! RelativePath="..\Functions\utilities.cpp" > - <FileConfiguration - Name="Debug CRTDLL|Win32" - > - <Tool - Name="VCCLCompilerTool" - ObjectFile="$(IntDir)\$(InputName)1.obj" - XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc" - /> - </FileConfiguration> - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCLCompilerTool" - ObjectFile="$(IntDir)\$(InputName)1.obj" - XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc" - /> - </FileConfiguration> - <FileConfiguration - Name="Release CRTDLL|Win32" - > - <Tool - Name="VCCLCompilerTool" - ObjectFile="$(IntDir)\$(InputName)1.obj" - XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCLCompilerTool" - ObjectFile="$(IntDir)\$(InputName)1.obj" - XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc" - /> - </FileConfiguration> </File> <File --- 497,502 ---- </File> <File ! RelativePath="..\Functions\ohutils.cpp" > </File> <File *************** *** 565,569 **** </File> <File ! RelativePath="..\Register\register_utilities.cpp" > </File> --- 529,533 ---- </File> <File ! RelativePath="..\Register\register_ohutils.cpp" > </File> Index: ohxllib.vcproj =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/ohxl/ohxllib/ohxllib.vcproj,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** ohxllib.vcproj 3 Dec 2006 14:35:03 -0000 1.15 --- ohxllib.vcproj 3 Dec 2006 21:08:46 -0000 1.16 *************** *** 470,510 **** </File> <File ! RelativePath="..\Functions\utilities.cpp"> ! <FileConfiguration ! Name="Debug CRTDLL|Win32"> ! <Tool ! Name="VCCLCompilerTool" ! ObjectFile="$(IntDir)/$(InputName)1.obj"/> ! </FileConfiguration> ! <FileConfiguration ! Name="Release SingleThread|Win32"> ! <Tool ! Name="VCCLCompilerTool" ! ObjectFile="$(IntDir)/$(InputName)1.obj"/> ! </FileConfiguration> ! <FileConfiguration ! Name="Release|Win32"> ! <Tool ! Name="VCCLCompilerTool" ! ObjectFile="$(IntDir)/$(InputName)1.obj"/> ! </FileConfiguration> ! <FileConfiguration ! Name="Release CRTDLL|Win32"> ! <Tool ! Name="VCCLCompilerTool" ! ObjectFile="$(IntDir)/$(InputName)1.obj"/> ! </FileConfiguration> ! <FileConfiguration ! Name="Debug|Win32"> ! <Tool ! Name="VCCLCompilerTool" ! ObjectFile="$(IntDir)/$(InputName)1.obj"/> ! </FileConfiguration> ! <FileConfiguration ! Name="Debug SingleThread|Win32"> ! <Tool ! Name="VCCLCompilerTool" ! ObjectFile="$(IntDir)/$(InputName)1.obj"/> ! </FileConfiguration> </File> <File --- 470,474 ---- </File> <File ! RelativePath="..\Functions\ohutils.cpp"> </File> <File *************** *** 562,566 **** </File> <File ! RelativePath="..\Register\register_utilities.cpp"> </File> <File --- 526,530 ---- </File> <File ! RelativePath="..\Register\register_ohutils.cpp"> </File> <File |
From: Eric E. <eri...@us...> - 2006-12-03 21:08:50
|
Update of /cvsroot/objecthandler/ObjectHandler/gensrc In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3145/gensrc Modified Files: Makefile.vc ohgensrc.vcproj ohgensrc_vc8.vcproj Log Message: rename ohParseFields() to ohSplit() and modify behavior: - no need to specify "DOUBLE/STRING" datatype - if index omitted, all fields returned as array Index: Makefile.vc =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/gensrc/Makefile.vc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Makefile.vc 3 Dec 2006 14:35:02 -0000 1.7 --- Makefile.vc 3 Dec 2006 21:08:45 -0000 1.8 *************** *** 10,14 **** metadata\garbagecollection.xml \ metadata\logging.xml \ ! metadata\utilities.xml \ metadata\valueobjects.xml --- 10,14 ---- metadata\garbagecollection.xml \ metadata\logging.xml \ ! metadata\ohutils.xml \ metadata\valueobjects.xml Index: ohgensrc.vcproj =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/gensrc/ohgensrc.vcproj,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ohgensrc.vcproj 3 Dec 2006 14:35:02 -0000 1.2 --- ohgensrc.vcproj 3 Dec 2006 21:08:45 -0000 1.3 *************** *** 49,53 **** </File> <File ! RelativePath=".\metadata\utilities.xml"> </File> <File --- 49,53 ---- </File> <File ! RelativePath=".\metadata\ohutils.xml"> </File> <File Index: ohgensrc_vc8.vcproj =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/gensrc/ohgensrc_vc8.vcproj,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ohgensrc_vc8.vcproj 3 Dec 2006 14:35:02 -0000 1.2 --- ohgensrc_vc8.vcproj 3 Dec 2006 21:08:45 -0000 1.3 *************** *** 91,95 **** </File> <File ! RelativePath=".\metadata\utilities.xml" > </File> --- 91,95 ---- </File> <File ! RelativePath=".\metadata\ohutils.xml" > </File> |
From: Eric E. <eri...@us...> - 2006-12-03 21:08:49
|
Update of /cvsroot/objecthandler/ObjectHandler/gensrc/metadata In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3145/gensrc/metadata Added Files: ohutils.xml Removed Files: utilities.xml Log Message: rename ohParseFields() to ohSplit() and modify behavior: - no need to specify "DOUBLE/STRING" datatype - if index omitted, all fields returned as array --- utilities.xml DELETED --- --- NEW FILE: ohutils.xml --- <Category name='ohutils'> <description>objecthandler utilities</description> <displayName>ObjectHandler Utilities</displayName> <xlFunctionWizardCategory>ObjectHandler</xlFunctionWizardCategory> <includes/> <copyright> Copyright (C) 2004, 2005 Ferdinando Ametrano Copyright (C) 2004, 2005, 2006 Eric Ehlers Copyright (C) 2005, 2006 Plamen Neykov Copyright (C) 2004 StatPro Italia srl </copyright> <Functions> <Procedure name='ohDependsOn' dependencyTrigger='false'> <description>forces a dependency between two functions and returns the update counter</description> <alias>ObjHandler::dependsOn</alias> <SupportedPlatforms> <Excel implementation='manual'/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='dummy0' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy1' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy2' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy3' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy4' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy5' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy6' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy7' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy8' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy9' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>long</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohFunctionCount'> <description>returns the number of functions in this addin</description> <alias>ObjHandler::version</alias> <SupportedPlatforms> <Excel implementation='manual'/> </SupportedPlatforms> <ParameterList> <Parameters/> </ParameterList> <ReturnValue> <type>long</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohListObjectIDs'> <description>list the IDs of objects in repository matching regex</description> <alias>ObjHandler::ObjectHandlerXL::instance().listObjectIDs</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='regex'> <type>string</type> <tensorRank>scalar</tensorRank> <description>optional matching pattern in UNIX format (wildcard is .*)</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>string</type> <tensorRank>vector</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohObjectCount'> <description>#/objects in repository</description> <alias>ObjHandler::ObjectHandlerXL::instance().objectCount</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters/> </ParameterList> <ReturnValue> <type>long</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohPack'> <description>trim error values from bottom/right of matrix/vector</description> <alias>ObjHandler::ObjectHandlerXL::instance().packMatrix</alias> <SupportedPlatforms> <Excel implementation='manual'/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='inputRange'> <type>any</type> <tensorRank>matrix</tensorRank> <description>scalar/vector/matrix of values to be packed</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>any</type> <tensorRank>matrix</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohSplit' dependencyTrigger='False'> <description>Extract the ith number from a whitespace-delimited list of fields</description> <alias>ObjHandler::parseField</alias> <SupportedPlatforms> <Excel implementation='manual'/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='line'> <type>string</type> <tensorRank>scalar</tensorRank> <description>text to be parsed</description> </Parameter> <Parameter name='delim' default='"[:space:]"'> <type>string</type> <tensorRank>scalar</tensorRank> <description>delimiter (default = whitespace)</description> </Parameter> <Parameter name='index' default='-1'> <type>long</type> <tensorRank>scalar</tensorRank> <description>index (1-based) of desired field - if omotted, all fields returned as arrray</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>any</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohRetrieveError'> <description>retrieve error message associated with a given range</description> <alias>ObjHandler::ObjectHandlerXL::instance().retrieveError</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='range'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>range to query</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>string</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohVersion'> <description>returns the version number of ObjectHandler</description> <alias>ObjHandler::version</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters/> </ParameterList> <ReturnValue> <type>string</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> </Functions> </Category> |
From: Eric E. <eri...@us...> - 2006-12-03 21:08:48
|
Update of /cvsroot/objecthandler/ObjectHandler/ohxl/Functions In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3145/ohxl/Functions Modified Files: .cvsignore manual.cpp Log Message: rename ohParseFields() to ohSplit() and modify behavior: - no need to specify "DOUBLE/STRING" datatype - if index omitted, all fields returned as array Index: .cvsignore =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/ohxl/Functions/.cvsignore,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** .cvsignore 3 Dec 2006 14:35:03 -0000 1.5 --- .cvsignore 3 Dec 2006 21:08:46 -0000 1.6 *************** *** 4,7 **** garbagecollection.cpp logging.cpp ! utilities.cpp valueobjects.cpp --- 4,7 ---- garbagecollection.cpp logging.cpp ! ohutils.cpp valueobjects.cpp Index: manual.cpp =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/ohxl/Functions/manual.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** manual.cpp 19 Nov 2006 13:08:27 -0000 1.8 --- manual.cpp 3 Dec 2006 21:08:46 -0000 1.9 *************** *** 25,34 **** #include <ohxl/functioncall.hpp> #include <ohxl/Functions/functioncount.hpp> ! #include <sstream> #include <map> - #include <boost/lexical_cast.hpp> #define XLL_DEC extern "C" - #define SET_SESSION_ID void operToOper(OPER *xTarget, const OPER *xSource) { --- 25,32 ---- #include <ohxl/functioncall.hpp> #include <ohxl/Functions/functioncount.hpp> ! //#include <sstream> #include <map> #define XLL_DEC extern "C" void operToOper(OPER *xTarget, const OPER *xSource) { *************** *** 82,89 **** return 0; - // initialize the QuantLib session ID (if enabled) - - SET_SESSION_ID - // reset the calling cell --- 80,83 ---- *************** *** 198,212 **** } ! XLL_DEC OPER *ohParseField( char *line, ! long *index, ! OPER *type, ! OPER *delim) { ! boost::shared_ptr < ObjHandler::FunctionCall > functionCall; ! try { ! functionCall = boost::shared_ptr < ObjHandler::FunctionCall > ! ( new ObjHandler::FunctionCall("ohParseField") ); ! SET_SESSION_ID // reset the calling cell --- 192,205 ---- } ! XLL_DEC OPER *ohSplit( char *line, ! OPER *delimOper, ! OPER *index) { ! boost::shared_ptr<ObjHandler::FunctionCall> functionCall; ! ! try { ! functionCall = boost::shared_ptr<ObjHandler::FunctionCall> ! ( new ObjHandler::FunctionCall("ohSplit") ); // reset the calling cell *************** *** 216,268 **** // convert the inputs ! std::string typeStr = ! ObjHandler::operToScalar<std::string>(*type, "NUMBER", "type"); ! ! std::string delimStr = ! ObjHandler::operToScalar<std::string>(*delim, "[:space:]", "delim"); // invoke the utility function ! if (*index<1) { ! std::stringstream msg; ! msg << "the index of the requested field - " << *index ! << " - is invalid - minimum value is 1."; ! throw ObjHandler::Exception(msg.str()); ! } ! unsigned int i = static_cast<unsigned int>(*index); ! std::vector<std::string> fields = ObjHandler::split(line, i, delimStr); ! if (i>fields.size()) { ! std::stringstream msg; ! msg << "Error parsing string -" << std::endl ! << line << std::endl << "- requested field index " << i ! << " exceeds #fields (" << fields.size() << ") found in string"; ! throw ObjHandler::Exception(msg.str()); ! } ! static OPER xRet; - if (typeStr.empty() || ObjHandler::uppercase(typeStr) == "NUMBER") { - double ret; - try { - ret = boost::lexical_cast<double>(fields[i-1]); - } catch (boost::bad_lexical_cast &) { - std::stringstream msg; - msg << "Error parsing string -" << std::endl - << line << std::endl << "- the requested field #" << i - << " comprising text '" << fields[i-1] - << "' could not be converted to a number"; - throw ObjHandler::Exception(msg.str()); - } - ObjHandler::scalarToOper(xRet, ret); - } else if (ObjHandler::uppercase(typeStr) == "STRING") { ObjHandler::scalarToOper(xRet, fields[i-1]); } else { ! std::stringstream msg; ! msg << "invalid type specified -" ! << " expected 'NUMBER' or 'STRING' -" ! << " detected '" << type << "'"; ! throw ObjHandler::Exception(msg.str()); } --- 209,243 ---- // convert the inputs ! std::string delim = ! ObjHandler::operToScalar<std::string>(*delimOper, "[:space:]", "delim"); // invoke the utility function ! std::vector<std::string> fields = ObjHandler::split(line, delim); ! static OPER xRet; ! if (index->xltype == xltypeNum) { ! // the user has specified a value for index, ! // so return fields[index] as a scalar string value ! ! OH_REQUIRE(index->val.num > 0, "Error parsing string -" << std::endl ! << line << std::endl << "- index of requested field must be > 0" ! << " - the value supplied was " << index->val.num); ! ! unsigned int i = static_cast<unsigned int>(index->val.num); ! ! OH_REQUIRE(i <= fields.size(),"Error parsing string -" << std::endl ! << line << std::endl << "- requested field index " << i ! << " exceeds #fields (" << fields.size() << ") found in string"); ObjHandler::scalarToOper(xRet, fields[i-1]); + } else { ! // the user hasn't specified a valid number for the index, ! // so return all of the fields in the input as a list of strings ! ! ObjHandler::vectorToOper(xRet, fields); } |
From: Eric E. <eri...@us...> - 2006-12-03 21:08:47
|
Update of /cvsroot/objecthandler/ObjectHandler/ohxl/Register In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3145/ohxl/Register Modified Files: .cvsignore Log Message: rename ohParseFields() to ohSplit() and modify behavior: - no need to specify "DOUBLE/STRING" datatype - if index omitted, all fields returned as array Index: .cvsignore =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/ohxl/Register/.cvsignore,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** .cvsignore 3 Dec 2006 14:35:03 -0000 1.4 --- .cvsignore 3 Dec 2006 21:08:46 -0000 1.5 *************** *** 1 **** ! register_*.cpp --- 1,6 ---- ! register_all.cpp ! register_demo.cpp ! register_garbagecollection.cpp ! register_logging.cpp ! register_ohutils.cpp ! register_valueobjects.cpp |
From: Eric E. <eri...@us...> - 2006-12-03 21:08:47
|
Update of /cvsroot/objecthandler/ObjectHandler/oh In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3145/oh Modified Files: utilities.cpp utilities.hpp Log Message: rename ohParseFields() to ohSplit() and modify behavior: - no need to specify "DOUBLE/STRING" datatype - if index omitted, all fields returned as array Index: utilities.cpp =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/oh/utilities.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** utilities.cpp 4 Oct 2006 09:37:43 -0000 1.15 --- utilities.cpp 3 Dec 2006 21:08:46 -0000 1.16 *************** *** 79,83 **** std::vector<std::string> split( const std::string &line, - unsigned int maxRequired, const std::string &delim) { std::vector<std::string> ret; --- 79,82 ---- *************** *** 86,90 **** boost::match_results<std::string::const_iterator> m; boost::regex r("[^" + delim + "]+"); ! while (maxRequired-- && boost::regex_search(start, end, m, r)) { ret.push_back(std::string(m[0].first, m[0].second)); start = m[0].second; --- 85,89 ---- boost::match_results<std::string::const_iterator> m; boost::regex r("[^" + delim + "]+"); ! while (boost::regex_search(start, end, m, r)) { ret.push_back(std::string(m[0].first, m[0].second)); start = m[0].second; Index: utilities.hpp =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/oh/utilities.hpp,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** utilities.hpp 26 Oct 2006 10:14:41 -0000 1.13 --- utilities.hpp 3 Dec 2006 21:08:46 -0000 1.14 *************** *** 83,87 **** std::vector<std::string> split( const std::string &line, - unsigned int maxRequired, const std::string &delim); --- 83,86 ---- |
From: Eric E. <eri...@us...> - 2006-12-03 21:08:47
|
Update of /cvsroot/objecthandler/ObjectHandler/gensrc/config In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3145/gensrc/config Modified Files: config.xml Log Message: rename ohParseFields() to ohSplit() and modify behavior: - no need to specify "DOUBLE/STRING" datatype - if index omitted, all fields returned as array Index: config.xml =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/gensrc/config/config.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** config.xml 3 Dec 2006 14:35:02 -0000 1.8 --- config.xml 3 Dec 2006 21:08:45 -0000 1.9 *************** *** 7,20 **** <libRootDirectory>oh</libRootDirectory> - <!--prefix>ql</prefix> - <loopRootDirectory>qlo/Loop</loopRootDirectory> - <usingEnumerations>true</usingEnumerations> - <namespaceLibrary>QuantLib</namespaceLibrary--> - <categoryNames> <categoryName>demo</categoryName> <categoryName>garbagecollection</categoryName> <categoryName>logging</categoryName> ! <categoryName>utilities</categoryName> <categoryName>valueobjects</categoryName> </categoryNames> --- 7,15 ---- <libRootDirectory>oh</libRootDirectory> <categoryNames> <categoryName>demo</categoryName> <categoryName>garbagecollection</categoryName> <categoryName>logging</categoryName> ! <categoryName>ohutils</categoryName> <categoryName>valueobjects</categoryName> </categoryNames> |
From: Eric E. <eri...@us...> - 2006-12-03 15:38:39
|
Update of /cvsroot/objecthandler/ObjectHandler/gensrc/metadata In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21180/gensrc/metadata Modified Files: demo.xml Log Message: ohDemoObject() Index: demo.xml =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/gensrc/metadata/demo.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** demo.xml 3 Dec 2006 14:35:03 -0000 1.1 --- demo.xml 3 Dec 2006 15:38:37 -0000 1.2 *************** *** 3,9 **** <displayName>Demo</displayName> <xlFunctionWizardCategory>ObjectHandler</xlFunctionWizardCategory> - <includes> - <include>oh/demoobject.hpp</include> - </includes> <copyright> --- 3,6 ---- |
From: Eric E. <eri...@us...> - 2006-12-03 14:35:10
|
Update of /cvsroot/objecthandler/ObjectHandler/gensrc/config In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27272/gensrc/config Modified Files: config.xml Log Message: ohDemoObject() Index: config.xml =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/gensrc/config/config.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** config.xml 3 Oct 2006 09:32:37 -0000 1.7 --- config.xml 3 Dec 2006 14:35:02 -0000 1.8 *************** *** 4,10 **** <excelRootDirectory>ohxl</excelRootDirectory> <namespaceObjects>ObjHandler</namespaceObjects> <categoryNames> ! <categoryName>functions</categoryName> </categoryNames> --- 4,21 ---- <excelRootDirectory>ohxl</excelRootDirectory> <namespaceObjects>ObjHandler</namespaceObjects> + <voRootDirectory>oh/ValueObjects</voRootDirectory> + <libRootDirectory>oh</libRootDirectory> + + <!--prefix>ql</prefix> + <loopRootDirectory>qlo/Loop</loopRootDirectory> + <usingEnumerations>true</usingEnumerations> + <namespaceLibrary>QuantLib</namespaceLibrary--> <categoryNames> ! <categoryName>demo</categoryName> ! <categoryName>garbagecollection</categoryName> ! <categoryName>logging</categoryName> ! <categoryName>utilities</categoryName> ! <categoryName>valueobjects</categoryName> </categoryNames> |
From: Eric E. <eri...@us...> - 2006-12-03 14:35:07
|
Update of /cvsroot/objecthandler/ObjectHandler/oh In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27272/oh Added Files: demo.hpp Log Message: ohDemoObject() --- NEW FILE: demo.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 oh_demo_hpp #define oh_demo_hpp #include <oh/object.hpp> namespace ObjHandler { class DemoObject : public Object { public: DemoObject(const std::string& stringParam, const long &longParam) : stringParam_(stringParam), longParam_(longParam) {}; const std::string stringParam() { return stringParam_; } const std::string setStringParam(const std::string& stringParam) { stringParam_ = stringParam; return stringParam_; } private: std::string stringParam_; long longParam_; }; } #endif |
From: Eric E. <eri...@us...> - 2006-12-03 14:35:07
|
Update of /cvsroot/objecthandler/ObjectHandler/gensrc/metadata In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27272/gensrc/metadata Added Files: demo.xml garbagecollection.xml logging.xml utilities.xml valueobjects.xml Removed Files: functions.xml Log Message: ohDemoObject() --- NEW FILE: valueobjects.xml --- <Category name='valueobjects'> <description>value objects</description> <displayName>Value Objects</displayName> <xlFunctionWizardCategory>ObjectHandler</xlFunctionWizardCategory> <includes/> <copyright> Copyright (C) 2004, 2005 Ferdinando Ametrano Copyright (C) 2004, 2005, 2006 Eric Ehlers Copyright (C) 2005, 2006 Plamen Neykov Copyright (C) 2004 StatPro Italia srl </copyright> <Functions> <Member name='ohPropertyNames' objectClass='Object'> <description>retrieve the property names of a given object</description> <libraryFunction>propertyNames</libraryFunction> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters/> </ParameterList> <ReturnValue> <type>string</type> <tensorRank>vector</tensorRank> </ReturnValue> </Member> <Member name='ohPropertyValue' objectClass='Object' dependencyTrigger='true'> <description>retrieve the value of a named property</description> <libraryFunction>propertyValue</libraryFunction> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='fieldName'> <type>string</type> <tensorRank>scalar</tensorRank> <description>name of property</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>any</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Member> </Functions> </Category> --- NEW FILE: garbagecollection.xml --- <Category name='garbagecollection'> <description>garbage collection</description> <displayName>Garbage Collection</displayName> <xlFunctionWizardCategory>ObjectHandler</xlFunctionWizardCategory> <includes/> <copyright> Copyright (C) 2004, 2005 Ferdinando Ametrano Copyright (C) 2004, 2005, 2006 Eric Ehlers Copyright (C) 2005, 2006 Plamen Neykov Copyright (C) 2004 StatPro Italia srl </copyright> <Functions> <Procedure name='ohCollectGarbage'> <description>delete orphaned objects from repository</description> <alias>ObjHandler::ObjectHandlerXL::instance().collectGarbage</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='deletePermanent' default='false'> <type>bool</type> <tensorRank>scalar</tensorRank> <description>also delete permanent objects</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>void</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohDeleteAllObjects'> <description>delete all objects from repository</description> <alias>ObjHandler::ObjectHandlerXL::instance().deleteAllObjects</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='deletePermanent' default='false'> <type>bool</type> <tensorRank>scalar</tensorRank> <description>also delete permanent objects</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>void</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohDeleteObject'> <description>delete object from repository</description> <alias>ObjHandler::ObjectHandlerXL::instance().deleteObject</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='ObjectID'> <type>string</type> <tensorRank>scalar</tensorRank> <description>ID of object to be deleted</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>void</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> </Functions> </Category> --- NEW FILE: utilities.xml --- <Category name='utilities'> <description>utilities</description> <displayName>Utilities</displayName> <xlFunctionWizardCategory>ObjectHandler</xlFunctionWizardCategory> <includes/> <copyright> Copyright (C) 2004, 2005 Ferdinando Ametrano Copyright (C) 2004, 2005, 2006 Eric Ehlers Copyright (C) 2005, 2006 Plamen Neykov Copyright (C) 2004 StatPro Italia srl </copyright> <Functions> <Procedure name='ohDependsOn' dependencyTrigger='false'> <description>forces a dependency between two functions and returns the update counter</description> <alias>ObjHandler::dependsOn</alias> <SupportedPlatforms> <Excel implementation='manual'/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='dummy0' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy1' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy2' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy3' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy4' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy5' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy6' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy7' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy8' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> <Parameter name='dummy9' ignore='true'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>dummy range reference (ignored)</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>long</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohFunctionCount'> <description>returns the number of functions in this addin</description> <alias>ObjHandler::version</alias> <SupportedPlatforms> <Excel implementation='manual'/> </SupportedPlatforms> <ParameterList> <Parameters/> </ParameterList> <ReturnValue> <type>long</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohListObjectIDs'> <description>list the IDs of objects in repository matching regex</description> <alias>ObjHandler::ObjectHandlerXL::instance().listObjectIDs</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='regex'> <type>string</type> <tensorRank>scalar</tensorRank> <description>optional matching pattern in UNIX format (wildcard is .*)</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>string</type> <tensorRank>vector</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohObjectCount'> <description>#/objects in repository</description> <alias>ObjHandler::ObjectHandlerXL::instance().objectCount</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters/> </ParameterList> <ReturnValue> <type>long</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohPack'> <description>trim error values from bottom/right of matrix/vector</description> <alias>ObjHandler::ObjectHandlerXL::instance().packMatrix</alias> <SupportedPlatforms> <Excel implementation='manual'/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='inputRange'> <type>any</type> <tensorRank>matrix</tensorRank> <description>scalar/vector/matrix of values to be packed</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>any</type> <tensorRank>matrix</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohParseField' dependencyTrigger='False'> <description>Extract the ith number from a whitespace-delimited list of fields</description> <alias>ObjHandler::parseField</alias> <SupportedPlatforms> <Excel implementation='manual'/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='line'> <type>string</type> <tensorRank>scalar</tensorRank> <description>text to be parsed</description> </Parameter> <Parameter name='index'> <type>long</type> <tensorRank>scalar</tensorRank> <description>index (1-based) of desired field</description> </Parameter> <Parameter name='dataType' default='"NUMBER"'> <type>string</type> <tensorRank>scalar</tensorRank> <description>expected datatype - NUMBER or STRING (default = NUMBER)</description> </Parameter> <Parameter name='delim' default='"[:space:]"'> <type>string</type> <tensorRank>scalar</tensorRank> <description>delimiter (default = whitespace)</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>any</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohRetrieveError'> <description>retrieve error message associated with a given range</description> <alias>ObjHandler::ObjectHandlerXL::instance().retrieveError</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='range'> <type>reference</type> <tensorRank>scalar</tensorRank> <description>range to query</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>string</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohVersion'> <description>returns the version number of ObjectHandler</description> <alias>ObjHandler::version</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters/> </ParameterList> <ReturnValue> <type>string</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> </Functions> </Category> --- NEW FILE: demo.xml --- <Category name='demo'> <description>demo</description> <displayName>Demo</displayName> <xlFunctionWizardCategory>ObjectHandler</xlFunctionWizardCategory> <includes> <include>oh/demoobject.hpp</include> </includes> <copyright> Copyright (C) 2006 Eric Ehlers </copyright> <Functions> <Constructor name='ohDemoObject'> <libraryFunction>DemoObject</libraryFunction> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='stringParam'> <type>string</type> <tensorRank>scalar</tensorRank> <description>string parameter</description> </Parameter> <Parameter name='longParam' defaultValue='42'> <type>long</type> <tensorRank>scalar</tensorRank> <description>long parameter</description> </Parameter> </Parameters> </ParameterList> </Constructor> <Member name='ohDemoStringParam' objectClass='DemoObject'> <description>retrieve value of parameter stringParam from object of class DemoObject</description> <libraryFunction>stringParam</libraryFunction> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters/> </ParameterList> <ReturnValue> <type>string</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Member> <Member name='ohDemoSetStringParam' objectClass='DemoObject'> <description>set value of parameter stringParam for object of class DemoObject</description> <libraryFunction>setStringParam</libraryFunction> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='stringParam'> <type>string</type> <tensorRank>scalar</tensorRank> <description>new value for string parameter</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>string</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Member> </Functions> </Category> --- functions.xml DELETED --- --- NEW FILE: logging.xml --- <Category name='logging'> <description>logging functions</description> <displayName>Logging Functions</displayName> <xlFunctionWizardCategory>ObjectHandler</xlFunctionWizardCategory> <includes/> <copyright> Copyright (C) 2004, 2005 Ferdinando Ametrano Copyright (C) 2004, 2005, 2006 Eric Ehlers Copyright (C) 2005, 2006 Plamen Neykov Copyright (C) 2004 StatPro Italia srl </copyright> <Functions> <Procedure name='ohLogAllObjects'> <description>write all object descriptions to log file</description> <alias>ObjHandler::logAllObjects</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters/> </ParameterList> <ReturnValue> <type>void</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohLogMessage'> <description>log a message</description> <alias>ObjHandler::logMessage</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='logMessage'> <type>string</type> <tensorRank>scalar</tensorRank> <description>message to be logged</description> </Parameter> <Parameter name='logLevel' default='4'> <type>long</type> <tensorRank>scalar</tensorRank> <description>threshold for log messages</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>void</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohLogObject'> <description>write object description to log file</description> <alias>ObjHandler::logObject</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='objectID'> <type>string</type> <tensorRank>scalar</tensorRank> <description>ID of object to be logged</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>void</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohSetLogFile'> <description>begin logging to named file</description> <alias>ObjHandler::setLogFile</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='logFileName'> <type>string</type> <tensorRank>scalar</tensorRank> <description>path and name of log file</description> </Parameter> <Parameter name='logLevel' default='4'> <type>long</type> <tensorRank>scalar</tensorRank> <description>threshold for log messages</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>string</type> <tensorRank>scalar</tensorRank> </ReturnValue> </Procedure> <Procedure name='ohSetLogLevel'> <description>set threshold for log messages</description> <alias>ObjHandler::setLogLevel</alias> <SupportedPlatforms> <Excel/> </SupportedPlatforms> <ParameterList> <Parameters> <Parameter name='logLevel'> <type>long</type> <tensorRank>scalar</tensorRank> <description>threshold for log messages</description> </Parameter> </Parameters> </ParameterList> <ReturnValue> <type>void</type> <tensorRank>scalar</tensorRank> <description>returns new logging threshold</description> </ReturnValue> </Procedure> </Functions> </Category> |
From: Eric E. <eri...@us...> - 2006-12-03 14:35:07
|
Update of /cvsroot/objecthandler/ObjectHandler/oh/ValueObjects In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27272/oh/ValueObjects Added Files: .cvsignore Log Message: ohDemoObject() --- NEW FILE: .cvsignore --- vo_*.*pp |
From: Eric E. <eri...@us...> - 2006-12-03 14:35:07
|
Update of /cvsroot/objecthandler/ObjectHandler/gensrc In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27272/gensrc Modified Files: Makefile.vc ohgensrc.vcproj ohgensrc_vc8.vcproj Log Message: ohDemoObject() Index: Makefile.vc =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/gensrc/Makefile.vc,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Makefile.vc 3 Oct 2006 12:59:24 -0000 1.6 --- Makefile.vc 3 Dec 2006 14:35:02 -0000 1.7 *************** *** 7,11 **** SCRIPT=scripts\gensrc.py ! METADATA= metadata\functions.xml CONFIG= config\config.xml \ --- 7,15 ---- SCRIPT=scripts\gensrc.py ! METADATA= metadata\demo.xml \ ! metadata\garbagecollection.xml \ ! metadata\logging.xml \ ! metadata\utilities.xml \ ! metadata\valueobjects.xml CONFIG= config\config.xml \ Index: ohgensrc.vcproj =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/gensrc/ohgensrc.vcproj,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ohgensrc.vcproj 17 Oct 2006 17:07:00 -0000 1.1 --- ohgensrc.vcproj 3 Dec 2006 14:35:02 -0000 1.2 *************** *** 40,44 **** Filter=""> <File ! RelativePath="metadata\functions.xml"> </File> </Filter> --- 40,56 ---- Filter=""> <File ! RelativePath=".\metadata\demo.xml"> ! </File> ! <File ! RelativePath=".\metadata\garbagecollection.xml"> ! </File> ! <File ! RelativePath=".\metadata\logging.xml"> ! </File> ! <File ! RelativePath=".\metadata\utilities.xml"> ! </File> ! <File ! RelativePath=".\metadata\valueobjects.xml"> </File> </Filter> Index: ohgensrc_vc8.vcproj =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/gensrc/ohgensrc_vc8.vcproj,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ohgensrc_vc8.vcproj 17 Oct 2006 17:07:00 -0000 1.1 --- ohgensrc_vc8.vcproj 3 Dec 2006 14:35:02 -0000 1.2 *************** *** 79,83 **** > <File ! RelativePath="metadata\functions.xml" > </File> --- 79,99 ---- > <File ! RelativePath=".\metadata\demo.xml" ! > ! </File> ! <File ! RelativePath=".\metadata\garbagecollection.xml" ! > ! </File> ! <File ! RelativePath=".\metadata\logging.xml" ! > ! </File> ! <File ! RelativePath=".\metadata\utilities.xml" ! > ! </File> ! <File ! RelativePath=".\metadata\valueobjects.xml" > </File> |
From: Eric E. <eri...@us...> - 2006-12-03 14:35:07
|
Update of /cvsroot/objecthandler/ObjectHandler/gensrc/stubs In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27272/gensrc/stubs Modified Files: stub.excel.includes Log Message: ohDemoObject() Index: stub.excel.includes =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/gensrc/stubs/stub.excel.includes,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** stub.excel.includes 16 Nov 2006 12:38:40 -0000 1.7 --- stub.excel.includes 3 Dec 2006 14:35:03 -0000 1.8 *************** *** 4,7 **** --- 4,8 ---- #include <ohxl/Conversions/all.hpp> #include <ohxl/functioncall.hpp> + %(categoryIncludes)s #include <sstream> |