Go to file
Nat Goodspeed 2bafe0dc8a Extend LLEventAPI to directly call other functions & methods.
Until now, LLEventAPI has only been able to register functions specifically
accepting(const LLSD&). Typically you add a wrapper method to your LLEventAPI
subclass, register that, have it extract desired params from the incoming LLSD
and then call the actual function of interest.
With help from Alain, added new LLEventAPI::add() methods capable of
registering functions/methods with arbitrary parameter signatures. The code
uses boost::fusion magic to implicitly match incoming LLSD arguments to the
function's formal parameter list, bypassing the need for an explicit helper
method.
New add() methods caused an ambiguity with a previous convenience overload.
Removed that overload and fixed the one existing usage.
Replaced LLEventDispatcher::get() with try_call() -- it's no longer easy to
return a Callable for caller to call directly. But the one known use of that
feature simply used it to avoid fatal LL_ERRS on unknown function-name string,
hence the try_call() approach actually addresses that case more directly.
Added indra/common/lleventdispatcher_test.cpp to exercise new functionality.
2011-01-28 20:18:10 -05:00
doc VWR-24321: fix validation of textures that start with 00 2011-01-24 09:35:41 -05:00
etc Switch inventory capabilities to FetchInventory2 and family. 2011-01-07 18:30:03 +00:00
indra Extend LLEventAPI to directly call other functions & methods. 2011-01-28 20:18:10 -05:00
scripts SNOW-744: scripts/install.py --uninstall does not remove symbolic links. 2010-12-15 17:31:18 +01:00
.hgignore added ignore for avatar.log 2010-05-29 13:29:37 -07:00
.hgtags Added tag nat-eventapi2-base for changeset b542f8134a2b 2011-01-28 19:56:15 -05:00
BuildParams Adding run_tests buildparam and setting to false for coverity builds so coverity can run. 2011-01-26 15:07:54 -08:00
build.sh Adding run_tests buildparam and setting to false for coverity builds so coverity can run. 2011-01-26 15:07:54 -08:00
install.xml STORM-808 : merge webkit upgrade to Qt v4.7.1 2010-12-22 14:06:46 -08:00
viewer-hg-convert.shamap Merge 2010-09-27 17:54:52 -07:00