From 420b91db29485df39fd6e724e782c449158811cb Mon Sep 17 00:00:00 2001 From: James Cook Date: Tue, 2 Jan 2007 08:33:20 +0000 Subject: Print done when done. --- indra/llui/llcallbackmap.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 indra/llui/llcallbackmap.h (limited to 'indra/llui/llcallbackmap.h') diff --git a/indra/llui/llcallbackmap.h b/indra/llui/llcallbackmap.h new file mode 100644 index 0000000000..dfc965aa08 --- /dev/null +++ b/indra/llui/llcallbackmap.h @@ -0,0 +1,36 @@ +/** + * @file llcallbackmap.h + * @brief LLCallbackMap base class + * + * Copyright (c) 2006-$CurrentYear$, Linden Research, Inc. + * $License$ + */ + +// llcallbackmap.h +// +// Copyright 2006, Linden Research, Inc. + +#ifndef LL_CALLBACK_MAP_H +#define LL_CALLBACK_MAP_H + +#include +#include "llstring.h" + +class LLCallbackMap +{ +public: + // callback definition. + typedef void* (*callback_t)(void* data); + + typedef std::map map_t; + typedef map_t::iterator map_iter_t; + typedef map_t::const_iterator map_const_iter_t; + + LLCallbackMap() : mCallback(NULL), mData(NULL) { } + LLCallbackMap(callback_t callback, void* data) : mCallback(callback), mData(data) { } + + callback_t mCallback; + void* mData; +}; + +#endif // LL_CALLBACK_MAP_H -- cgit v1.2.3