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/llcommon/metaclasst.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 indra/llcommon/metaclasst.h (limited to 'indra/llcommon/metaclasst.h') diff --git a/indra/llcommon/metaclasst.h b/indra/llcommon/metaclasst.h new file mode 100644 index 0000000000..8ae9016b57 --- /dev/null +++ b/indra/llcommon/metaclasst.h @@ -0,0 +1,42 @@ +/** + * @file metaclasst.h + * + * Copyright (c) 2006-$CurrentYear$, Linden Research, Inc. + * $License$ + */ + +#ifndef LL_METACLASST_H +#define LL_METACLASST_H + +#include "metaclass.h" + +template +class LLMetaClassT : public LLMetaClass +{ + public: + + virtual ~LLMetaClassT() {;} + + static const LLMetaClassT& instance() + { + static const LLMetaClassT& instance = buildMetaClass(); + return instance; + } + + private: + + static const LLMetaClassT& buildMetaClass() + { + LLMetaClassT& meta_class = *(new LLMetaClassT()); + reflectProperties(meta_class); + return meta_class; + } + + LLMetaClassT() {;} + + static void reflectProperties(LLMetaClass&) + { + } +}; + +#endif // LL_METACLASST_H -- cgit v1.2.3