summaryrefslogtreecommitdiff
path: root/indra/llcommon/metaclasst.h
blob: 8ae9016b57dafb0cb723fd5bb08077c1c37cddfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 TObject>
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