-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFooBar.meta.h
More file actions
50 lines (40 loc) · 1.3 KB
/
Copy pathFooBar.meta.h
File metadata and controls
50 lines (40 loc) · 1.3 KB
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
43
44
45
46
47
48
49
50
#pragma once
#include <Meta.hpp>
// include interfaces and all derived classes
#include "IFooBar.h"
#include "CFooBar.h"
#include "CBarFoo.h"
namespace Meta::FooBar
{
/************
* Methods
************/
// IFooBar
struct MIFooBarAbstractMethod : IFooBar::CMeta::TAbstractMethod
{};
struct MIFooBarVirtualMethod : IFooBar::CMeta::TVirtualMethod
{};
// CFooBar
struct MCFooBarAbstractMethod : CFooBar::CMeta::TAbstractMethod
{};
struct MCFooBarVirtualMethod : CFooBar::CMeta::TVirtualMethod
{};
// CBarFoo
struct MCBarFooAbstractMethod : CBarFoo::CMeta::TAbstractMethod
{};
struct MCBarFooVirtualMethod : CBarFoo::CMeta::TVirtualMethod
{};
}
namespace Meta
{
// all:
using TFooBarResourcesList = TRegisterResources<GLOBAL_METHOD_RESOURCE_LIST,
FooBar::MIFooBarAbstractMethod,
FooBar::MIFooBarVirtualMethod,
FooBar::MCFooBarAbstractMethod,
FooBar::MCFooBarVirtualMethod,
FooBar::MCBarFooAbstractMethod,
FooBar::MCBarFooVirtualMethod>;
#undef GLOBAL_METHOD_RESOURCE_LIST
#define GLOBAL_METHOD_RESOURCE_LIST TFooBarResourcesList
}