diff options
author | callum <none@none> | 2009-11-13 11:05:18 -0800 |
---|---|---|
committer | callum <none@none> | 2009-11-13 11:05:18 -0800 |
commit | 7e2d2406584ffe3a0c2f87734ada194a92b82df6 (patch) | |
tree | f8c4b455ad3cd8dcd7bbe43086c17dacf948ca4f /indra/llcommon/lleventapi.h | |
parent | be72748d2a69ddda51c4b41c0c8f2beba077b265 (diff) | |
parent | 69ca84a6a421ff0453730e181cccabe76bf5e9aa (diff) |
Merge to tip
Diffstat (limited to 'indra/llcommon/lleventapi.h')
-rw-r--r-- | indra/llcommon/lleventapi.h | 13 |
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; }; |