umbrello 25.11.70
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
moc_cppcodegenerator.cpp
Go to the documentation of this file.
1/****************************************************************************
2** Meta object code from reading C++ file 'cppcodegenerator.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.8.3)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
10#include <QtCore/qmetatype.h>
11
12#include <QtCore/qtmochelpers.h>
13
14#include <memory>
15
16
17#include <QtCore/qxptype_traits.h>
18#if !defined(Q_MOC_OUTPUT_REVISION)
19#error "The header file 'cppcodegenerator.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 68
21#error "This file was generated using the moc from 6.8.3. It"
22#error "cannot be used with the include files from this version of Qt."
23#error "(The moc has changed too much.)"
24#endif
25
26#ifndef Q_CONSTINIT
27#define Q_CONSTINIT
28#endif
29
30QT_WARNING_PUSH
32QT_WARNING_DISABLE_GCC("-Wuseless-cast")
33namespace {
35} // unnamed namespace
36
37
38#ifdef QT_MOC_HAS_STRINGDATA
39static constexpr auto qt_meta_stringdata_ZN16CPPCodeGeneratorE = QtMocHelpers::stringData(
40 "CPPCodeGenerator",
41 "checkAddUMLObject",
42 "",
43 "UMLObject*",
44 "obj",
45 "checkRemoveUMLObject",
46 "syncCodeToDocument"
47);
48#else // !QT_MOC_HAS_STRINGDATA
49#error "qtmochelpers.h not found or too old."
50#endif // !QT_MOC_HAS_STRINGDATA
51
53
54 // content:
55 12, // revision
56 0, // classname
57 0, 0, // classinfo
58 3, 14, // methods
59 0, 0, // properties
60 0, 0, // enums/sets
61 0, 0, // constructors
62 0, // flags
63 0, // signalCount
64
65 // slots: name, argc, parameters, tag, flags, initial metatype offsets
66 1, 1, 32, 2, 0x0a, 1 /* Public */,
67 5, 1, 35, 2, 0x0a, 3 /* Public */,
68 6, 0, 38, 2, 0x0a, 5 /* Public */,
69
70 // slots: parameters
71 QMetaType::Void, 0x80000000 | 3, 4,
72 QMetaType::Void, 0x80000000 | 3, 4,
73 QMetaType::Void,
74
75 0 // eod
76};
77
78Q_CONSTINIT const QMetaObject CPPCodeGenerator::staticMetaObject = { {
79 QMetaObject::SuperData::link<AdvancedCodeGenerator::staticMetaObject>(),
80 qt_meta_stringdata_ZN16CPPCodeGeneratorE.offsetsAndSizes,
82 qt_static_metacall,
83 nullptr,
84 qt_incomplete_metaTypeArray<qt_meta_tag_ZN16CPPCodeGeneratorE_t,
85 // Q_OBJECT / Q_GADGET
86 QtPrivate::TypeAndForceComplete<CPPCodeGenerator, std::true_type>,
87 // method 'checkAddUMLObject'
88 QtPrivate::TypeAndForceComplete<void, std::false_type>,
89 QtPrivate::TypeAndForceComplete<UMLObject *, std::false_type>,
90 // method 'checkRemoveUMLObject'
91 QtPrivate::TypeAndForceComplete<void, std::false_type>,
92 QtPrivate::TypeAndForceComplete<UMLObject *, std::false_type>,
93 // method 'syncCodeToDocument'
94 QtPrivate::TypeAndForceComplete<void, std::false_type>
95 >,
96 nullptr
97} };
98
99void CPPCodeGenerator::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
100{
101 auto *_t = static_cast<CPPCodeGenerator *>(_o);
102 if (_c == QMetaObject::InvokeMetaMethod) {
103 switch (_id) {
104 case 0: _t->checkAddUMLObject((*reinterpret_cast< std::add_pointer_t<UMLObject*>>(_a[1]))); break;
105 case 1: _t->checkRemoveUMLObject((*reinterpret_cast< std::add_pointer_t<UMLObject*>>(_a[1]))); break;
106 case 2: _t->syncCodeToDocument(); break;
107 default: ;
108 }
109 }
110 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
111 switch (_id) {
112 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
113 case 0:
114 switch (*reinterpret_cast<int*>(_a[1])) {
115 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
116 case 0:
117 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< UMLObject* >(); break;
118 }
119 break;
120 case 1:
121 switch (*reinterpret_cast<int*>(_a[1])) {
122 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
123 case 0:
124 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< UMLObject* >(); break;
125 }
126 break;
127 }
128 }
129}
130
131const QMetaObject *CPPCodeGenerator::metaObject() const
132{
133 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
134}
135
136void *CPPCodeGenerator::qt_metacast(const char *_clname)
137{
138 if (!_clname) return nullptr;
139 if (!strcmp(_clname, qt_meta_stringdata_ZN16CPPCodeGeneratorE.stringdata0))
140 return static_cast<void*>(this);
141 return AdvancedCodeGenerator::qt_metacast(_clname);
142}
143
144int CPPCodeGenerator::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
145{
146 _id = AdvancedCodeGenerator::qt_metacall(_c, _id, _a);
147 if (_id < 0)
148 return _id;
149 if (_c == QMetaObject::InvokeMetaMethod) {
150 if (_id < 3)
151 qt_static_metacall(this, _c, _id, _a);
152 _id -= 3;
153 }
154 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
155 if (_id < 3)
156 qt_static_metacall(this, _c, _id, _a);
157 _id -= 3;
158 }
159 return _id;
160}
161QT_WARNING_POP
CPPCodeGenerator()
Definition cppcodegenerator.cpp:31
static Q_CONSTINIT const uint qt_meta_data_ZN16CPPCodeGeneratorE[]
Definition moc_cppcodegenerator.cpp:52
#define Q_CONSTINIT
Definition moc_parser.cpp:27
Definition moc_parser.cpp:33