-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_SettingsTemplate.h
68 lines (50 loc) · 1.41 KB
/
_SettingsTemplate.h
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#undef XST
#undef XSS
#ifndef SettingsTemplate
#define SettingsTemplate
//#include <vector>
#include "_SettingsGenerator_XSIni.h"
// Type define you drivers here.
//typedef CString XS_Ini;
typedef int XS_JSon;
template<typename A, typename B>
class XSTestMacro {
};
enum XSLoadSave {
eXS_Load,
eXS_Save,
};
#define XSVAR(_varName) m_ ## _varName
#define XSDT(tagName, version)
#define XSD(_typeName, _varName)
#define XSDI(_typeName, _varName, _defaultValue)
#define XSDCI(_typeName, _varName, _defaultValue)
#define XSDD(_typeName, _varName, _defaultValue, _mfcControl)
#define XSDDI(_typeName, _varName, _defaultValue, _mfcControl, _dlgIdc)
#define XSVC(_varName, ...)
#define XSVCI(_varName, _containerType, ...)
#define XSVCXS(_varName, _containerType, ...)
#define XSCXS(_xsTypeName, _varName)
#ifdef __DEBUG
#define SettingesTemplateDoCheck
#endif
#ifdef SettingesTemplateDoCheck
// Ensure that all the flesh for the class exist.
#define XSC(name) class name : virtual public IXSTemplateBase { \
public: name () {Init();}
#else
#define XSC(name) class name { \
public: name () {Init();}
#endif
class IXSTemplateBase
{
IXSTemplateBase() {
}
virtual ~IXSTemplateBase() {
}
template<typename TClassSave>
void LoadSave(XSLoadSave eLoadSave, TClassSave obj) = 0;
// Ensure that the class was generated using the Settings Generator
virtual void UseTheSettingsGenerator() = 0;
};
#endif