summaryrefslogtreecommitdiff
path: root/indra/llcommon/lleventapi.h
diff options
context:
space:
mode:
authorrichard <none@none>2009-11-13 18:28:20 -0800
committerrichard <none@none>2009-11-13 18:28:20 -0800
commit4c4f329acb7792e4713b7e38bd437b9a7d239ec5 (patch)
treecf15c27f8e66a3dfc95644a8673dead729e040d8 /indra/llcommon/lleventapi.h
parent890da1d3914ffb52d0899c333fe8b8c280fe4d34 (diff)
parentf4fdaa8ee9d8016ca23957e78fe246206579723f (diff)
merge
Diffstat (limited to 'indra/llcommon/lleventapi.h')
-rw-r--r--indra/llcommon/lleventapi.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llcommon/lleventapi.h b/indra/llcommon/lleventapi.h
index 2cd3b5bf89..96d1b03be8 100644
--- a/indra/llcommon/lleventapi.h
+++ b/indra/llcommon/lleventapi.h
@@ -46,6 +46,19 @@ public:
/// Get the documentation string
std::string getDesc() const { return mDesc; }
+ /**
+ * Publish only selected add() methods from LLEventDispatcher.
+ * Every LLEventAPI add() @em must have a description string.
+ */
+ template <typename CALLABLE>
+ void add(const std::string& name,
+ const std::string& desc,
+ CALLABLE callable,
+ const LLSD& required=LLSD())
+ {
+ LLEventDispatcher::add(name, desc, callable, required);
+ }
+
private:
std::string mDesc;
};