QxOrm 1.4.9
C++ Object Relational Mapping library
Loading...
Searching...
No Matches
get_class_name_primitive.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** https://www.qxorm.com/
4** Copyright (C) 2013 Lionel Marty (contact@qxorm.com)
5**
6** This file is part of the QxOrm library
7**
8** This software is provided 'as-is', without any express or implied
9** warranty. In no event will the authors be held liable for any
10** damages arising from the use of this software
11**
12** Commercial Usage
13** Licensees holding valid commercial QxOrm licenses may use this file in
14** accordance with the commercial license agreement provided with the
15** Software or, alternatively, in accordance with the terms contained in
16** a written agreement between you and Lionel Marty
17**
18** GNU General Public License Usage
19** Alternatively, this file may be used under the terms of the GNU
20** General Public License version 3.0 as published by the Free Software
21** Foundation and appearing in the file 'license.gpl3.txt' included in the
22** packaging of this file. Please review the following information to
23** ensure the GNU General Public License version 3.0 requirements will be
24** met : http://www.gnu.org/copyleft/gpl.html
25**
26** If you are unsure which license is appropriate for your use, or
27** if you have questions regarding the use of this file, please contact :
28** contact@qxorm.com
29**
30****************************************************************************/
31
32#ifndef _QX_GET_CLASS_NAME_PRIMITIVE_H_
33#define _QX_GET_CLASS_NAME_PRIMITIVE_H_
34
35#ifdef _MSC_VER
36#pragma once
37#endif
38
46#include <string>
47#include <vector>
48#include <list>
49#include <map>
50#include <set>
51
52#include <QtCore/qglobal.h>
53#include <QtCore/qobject.h>
54#include <QtCore/qstring.h>
55#include <QtCore/qstringlist.h>
56#include <QtCore/qvector.h>
57#include <QtCore/qlist.h>
58#include <QtCore/qmap.h>
59#include <QtCore/qset.h>
60#include <QtCore/qhash.h>
61#include <QtCore/qdatetime.h>
62#include <QtCore/qvariant.h>
63#include <QtCore/qbytearray.h>
64#include <QtCore/qpair.h>
65#include <QtCore/qpoint.h>
66#include <QtCore/qrect.h>
67#include <QtCore/qsharedpointer.h>
68#include <QtCore/qsize.h>
69#include <QtCore/qurl.h>
70#include <QtCore/quuid.h>
71#include <QtCore/QWeakPointer>
72
73#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
74#include <QtCore/qlinkedlist.h>
75#endif // (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
76
77#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
78#include <QtCore/qregexp.h>
79#endif // (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
80
81#include <QtSql/qsqlerror.h>
82
83#ifdef _QX_ENABLE_QT_GUI
84#include <QtGui/qcolor.h>
85#include <QtGui/qfont.h>
86#include <QtGui/qimage.h>
87#include <QtGui/qbrush.h>
88#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
89#include <QtGui/qmatrix.h>
90#endif // (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
91#include <QtGui/qpicture.h>
92#include <QtGui/qpixmap.h>
93#include <QtGui/qregion.h>
94#endif // _QX_ENABLE_QT_GUI
95
96#if (QT_VERSION >= QT_VERSION_CHECK(4, 6, 0))
97#include <QtCore/qscopedpointer.h>
98#endif // (QT_VERSION >= QT_VERSION_CHECK(4, 6, 0))
99
100#include <QxDao/QxDaoPointer.h>
101
103
111QX_REGISTER_CLASS_NAME(long double)
113QX_REGISTER_CLASS_NAME(unsigned int)
114QX_REGISTER_CLASS_NAME(unsigned short)
115QX_REGISTER_CLASS_NAME(unsigned long)
116QX_REGISTER_CLASS_NAME(unsigned char)
117
118QX_REGISTER_CLASS_NAME(std::string)
119QX_REGISTER_CLASS_NAME(std::wstring)
120
123QX_REGISTER_CLASS_NAME(QStringList)
124QX_REGISTER_CLASS_NAME(QByteArray)
126QX_REGISTER_CLASS_NAME(QDateTime)
134QX_REGISTER_CLASS_NAME(QSqlError)
135
136#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
138#endif // (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
139
140#ifdef _QX_ENABLE_QT_GUI
145#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
147#endif // (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
151#endif // _QX_ENABLE_QT_GUI
152
157
158#ifdef _QX_ENABLE_BOOST
159
160QX_REGISTER_CLASS_NAME_TEMPLATE_1(boost::shared_ptr)
161QX_REGISTER_CLASS_NAME_TEMPLATE_1(boost::scoped_ptr)
164
165#endif // _QX_ENABLE_BOOST
166
172
173#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
175#endif // (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
176
177#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
179#endif // (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
180
182
186
189
190#ifdef _QX_ENABLE_BOOST
191QX_REGISTER_CLASS_NAME_TEMPLATE_2(boost::unordered_map)
192QX_REGISTER_CLASS_NAME_TEMPLATE_2(boost::unordered_multimap)
193QX_REGISTER_CLASS_NAME_TEMPLATE_1(boost::unordered_set)
194QX_REGISTER_CLASS_NAME_TEMPLATE_1(boost::unordered_multiset)
195#endif // _QX_ENABLE_BOOST
196
197QX_REGISTER_CLASS_NAME_TEMPLATE_2(std::unordered_map)
198QX_REGISTER_CLASS_NAME_TEMPLATE_2(std::unordered_multimap)
199QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::unordered_set)
200QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::unordered_multiset)
201
202#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
204#endif // (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
205
210
211#ifdef _QX_ENABLE_BOOST
221#endif // _QX_ENABLE_BOOST
222
232
233#if (QT_VERSION >= QT_VERSION_CHECK(4, 6, 0))
235#endif // (QT_VERSION >= QT_VERSION_CHECK(4, 6, 0))
236
237#endif // _QX_GET_CLASS_NAME_PRIMITIVE_H_
qx::dao::ptr<T> : provide a classic smart-pointer (like boost::shared_ptr<T> or QSharedPointer<T>) wi...
qx::dao::ptr<T> : provide a classic smart-pointer (like boost::shared_ptr<T> or QSharedPointer<T>) wi...
qx::trait::get_class_name<T>::get() : return class name of type T under const char * format,...
#define QX_REGISTER_CLASS_NAME_TEMPLATE_6(className)
#define QX_REGISTER_CLASS_NAME_TEMPLATE_2(className)
#define QX_REGISTER_CLASS_NAME_TEMPLATE_4(className)
#define QX_REGISTER_CLASS_NAME_TEMPLATE_3(className)
#define QX_REGISTER_CLASS_NAME_TEMPLATE_9(className)
#define QX_REGISTER_CLASS_NAME(className)
#define QX_REGISTER_CLASS_NAME_TEMPLATE_5(className)
#define QX_REGISTER_CLASS_NAME_TEMPLATE_1(className)
#define QX_REGISTER_CLASS_NAME_TEMPLATE_8(className)
#define QX_REGISTER_CLASS_NAME_TEMPLATE_7(className)