blob: 6007d394c59eb790552659872ad51d4adc248453 (
plain) (
blame)
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
|
#ifndef GOVALUETYPE_H
#define GOVALUETYPE_H
#include "govalue.h"
template <int N>
class GoValueType : public GoValue
{
public:
GoValueType()
: GoValue(hookGoValueTypeNew(this, typeSpec), typeInfo, 0) {};
static void init(GoTypeInfo *info, GoTypeSpec_ *spec)
{
typeInfo = info;
typeSpec = spec;
static_cast<QMetaObject &>(staticMetaObject) = *metaObjectFor(typeInfo);
};
static GoTypeSpec_ *typeSpec;
static GoTypeInfo *typeInfo;
static QMetaObject staticMetaObject;
};
template <int N>
class GoPaintedValueType : public GoPaintedValue
{
public:
GoPaintedValueType()
: GoPaintedValue(hookGoValueTypeNew(this, typeSpec), typeInfo, 0) {};
static void init(GoTypeInfo *info, GoTypeSpec_ *spec)
{
typeInfo = info;
typeSpec = spec;
static_cast<QMetaObject &>(staticMetaObject) = *metaObjectFor(typeInfo);
};
static GoTypeSpec_ *typeSpec;
static GoTypeInfo *typeInfo;
static QMetaObject staticMetaObject;
};
#endif // GOVALUETYPE_H
// vim:ts=4:sw=4:et
|