QxOrm
1.5.0
C++ Object Relational Mapping library
|
00001 /**************************************************************************** 00002 ** 00003 ** https://www.qxorm.com/ 00004 ** Copyright (C) 2013 Lionel Marty (contact@qxorm.com) 00005 ** 00006 ** This file is part of the QxOrm library 00007 ** 00008 ** This software is provided 'as-is', without any express or implied 00009 ** warranty. In no event will the authors be held liable for any 00010 ** damages arising from the use of this software 00011 ** 00012 ** Commercial Usage 00013 ** Licensees holding valid commercial QxOrm licenses may use this file in 00014 ** accordance with the commercial license agreement provided with the 00015 ** Software or, alternatively, in accordance with the terms contained in 00016 ** a written agreement between you and Lionel Marty 00017 ** 00018 ** GNU General Public License Usage 00019 ** Alternatively, this file may be used under the terms of the GNU 00020 ** General Public License version 3.0 as published by the Free Software 00021 ** Foundation and appearing in the file 'license.gpl3.txt' included in the 00022 ** packaging of this file. Please review the following information to 00023 ** ensure the GNU General Public License version 3.0 requirements will be 00024 ** met : http://www.gnu.org/copyleft/gpl.html 00025 ** 00026 ** If you are unsure which license is appropriate for your use, or 00027 ** if you have questions regarding the use of this file, please contact : 00028 ** contact@qxorm.com 00029 ** 00030 ****************************************************************************/ 00031 00032 #ifndef _QX_GET_CLASS_NAME_PRIMITIVE_H_ 00033 #define _QX_GET_CLASS_NAME_PRIMITIVE_H_ 00034 00035 #ifdef _MSC_VER 00036 #pragma once 00037 #endif 00038 00046 #include <string> 00047 #include <vector> 00048 #include <list> 00049 #include <map> 00050 #include <set> 00051 00052 #include <QtCore/qglobal.h> 00053 #include <QtCore/qobject.h> 00054 #include <QtCore/qstring.h> 00055 #include <QtCore/qstringlist.h> 00056 #include <QtCore/qvector.h> 00057 #include <QtCore/qlist.h> 00058 #include <QtCore/qmap.h> 00059 #include <QtCore/qset.h> 00060 #include <QtCore/qhash.h> 00061 #include <QtCore/qdatetime.h> 00062 #include <QtCore/qvariant.h> 00063 #include <QtCore/qbytearray.h> 00064 #include <QtCore/qpair.h> 00065 #include <QtCore/qpoint.h> 00066 #include <QtCore/qrect.h> 00067 #include <QtCore/qsharedpointer.h> 00068 #include <QtCore/qsize.h> 00069 #include <QtCore/qurl.h> 00070 #include <QtCore/quuid.h> 00071 #include <QtCore/QWeakPointer> 00072 00073 #if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0)) 00074 #include <QtCore/qlinkedlist.h> 00075 #endif // (QT_VERSION < QT_VERSION_CHECK(5, 15, 0)) 00076 00077 #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) 00078 #include <QtCore/qregexp.h> 00079 #endif // (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) 00080 00081 #include <QtSql/qsqlerror.h> 00082 00083 #ifdef _QX_ENABLE_QT_GUI 00084 #include <QtGui/qcolor.h> 00085 #include <QtGui/qfont.h> 00086 #include <QtGui/qimage.h> 00087 #include <QtGui/qbrush.h> 00088 #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) 00089 #include <QtGui/qmatrix.h> 00090 #endif // (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) 00091 #include <QtGui/qpicture.h> 00092 #include <QtGui/qpixmap.h> 00093 #include <QtGui/qregion.h> 00094 #endif // _QX_ENABLE_QT_GUI 00095 00096 #if (QT_VERSION >= QT_VERSION_CHECK(4, 6, 0)) 00097 #include <QtCore/qscopedpointer.h> 00098 #endif // (QT_VERSION >= QT_VERSION_CHECK(4, 6, 0)) 00099 00100 #include <QxDao/QxDaoPointer.h> 00101 00102 #include <QxTraits/get_class_name.h> 00103 00104 QX_REGISTER_CLASS_NAME(void) 00105 QX_REGISTER_CLASS_NAME(bool) 00106 QX_REGISTER_CLASS_NAME(int) 00107 QX_REGISTER_CLASS_NAME(short) 00108 QX_REGISTER_CLASS_NAME(long) 00109 QX_REGISTER_CLASS_NAME(float) 00110 QX_REGISTER_CLASS_NAME(double) 00111 QX_REGISTER_CLASS_NAME(long double) 00112 QX_REGISTER_CLASS_NAME(char) 00113 QX_REGISTER_CLASS_NAME(unsigned int) 00114 QX_REGISTER_CLASS_NAME(unsigned short) 00115 QX_REGISTER_CLASS_NAME(unsigned long) 00116 QX_REGISTER_CLASS_NAME(unsigned char) 00117 00118 QX_REGISTER_CLASS_NAME(std::string) 00119 QX_REGISTER_CLASS_NAME(std::wstring) 00120 00121 QX_REGISTER_CLASS_NAME(QObject) 00122 QX_REGISTER_CLASS_NAME(QString) 00123 QX_REGISTER_CLASS_NAME(QStringList) 00124 QX_REGISTER_CLASS_NAME(QByteArray) 00125 QX_REGISTER_CLASS_NAME(QDate) 00126 QX_REGISTER_CLASS_NAME(QDateTime) 00127 QX_REGISTER_CLASS_NAME(QPoint) 00128 QX_REGISTER_CLASS_NAME(QRect) 00129 QX_REGISTER_CLASS_NAME(QSize) 00130 QX_REGISTER_CLASS_NAME(QTime) 00131 QX_REGISTER_CLASS_NAME(QUrl) 00132 QX_REGISTER_CLASS_NAME(QVariant) 00133 QX_REGISTER_CLASS_NAME(QUuid) 00134 QX_REGISTER_CLASS_NAME(QSqlError) 00135 00136 #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) 00137 QX_REGISTER_CLASS_NAME(QRegExp) 00138 #endif // (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) 00139 00140 #ifdef _QX_ENABLE_QT_GUI 00141 QX_REGISTER_CLASS_NAME(QColor) 00142 QX_REGISTER_CLASS_NAME(QFont) 00143 QX_REGISTER_CLASS_NAME(QImage) 00144 QX_REGISTER_CLASS_NAME(QBrush) 00145 #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) 00146 QX_REGISTER_CLASS_NAME(QMatrix) 00147 #endif // (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) 00148 QX_REGISTER_CLASS_NAME(QPicture) 00149 QX_REGISTER_CLASS_NAME(QPixmap) 00150 QX_REGISTER_CLASS_NAME(QRegion) 00151 #endif // _QX_ENABLE_QT_GUI 00152 00153 QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::allocator) 00154 QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::vector) 00155 QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::list) 00156 QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::set) 00157 00158 #ifdef _QX_ENABLE_BOOST 00159 00160 QX_REGISTER_CLASS_NAME_TEMPLATE_1(boost::shared_ptr) 00161 QX_REGISTER_CLASS_NAME_TEMPLATE_1(boost::scoped_ptr) 00162 QX_REGISTER_CLASS_NAME_TEMPLATE_1(boost::weak_ptr) 00163 QX_REGISTER_CLASS_NAME_TEMPLATE_1(boost::optional) 00164 00165 #endif // _QX_ENABLE_BOOST 00166 00167 QX_REGISTER_CLASS_NAME_TEMPLATE_1(QList) 00168 QX_REGISTER_CLASS_NAME_TEMPLATE_1(QSharedPointer) 00169 QX_REGISTER_CLASS_NAME_TEMPLATE_1(QWeakPointer) 00170 QX_REGISTER_CLASS_NAME_TEMPLATE_1(QFlags) 00171 QX_REGISTER_CLASS_NAME_TEMPLATE_1(QSet) 00172 00173 #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) 00174 QX_REGISTER_CLASS_NAME_TEMPLATE_1(QVector) 00175 #endif // (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) 00176 00177 #if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0)) 00178 QX_REGISTER_CLASS_NAME_TEMPLATE_1(QLinkedList) 00179 #endif // (QT_VERSION < QT_VERSION_CHECK(5, 15, 0)) 00180 00181 QX_REGISTER_CLASS_NAME_TEMPLATE_1(qx::dao::ptr) 00182 00183 QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::unique_ptr) 00184 QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::shared_ptr) 00185 QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::weak_ptr) 00186 00187 QX_REGISTER_CLASS_NAME_TEMPLATE_2(std::pair) 00188 QX_REGISTER_CLASS_NAME_TEMPLATE_2(std::map) 00189 00190 #ifdef _QX_ENABLE_BOOST 00191 QX_REGISTER_CLASS_NAME_TEMPLATE_2(boost::unordered_map) 00192 QX_REGISTER_CLASS_NAME_TEMPLATE_2(boost::unordered_multimap) 00193 QX_REGISTER_CLASS_NAME_TEMPLATE_1(boost::unordered_set) 00194 QX_REGISTER_CLASS_NAME_TEMPLATE_1(boost::unordered_multiset) 00195 #endif // _QX_ENABLE_BOOST 00196 00197 QX_REGISTER_CLASS_NAME_TEMPLATE_2(std::unordered_map) 00198 QX_REGISTER_CLASS_NAME_TEMPLATE_2(std::unordered_multimap) 00199 QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::unordered_set) 00200 QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::unordered_multiset) 00201 00202 #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) 00203 QX_REGISTER_CLASS_NAME_TEMPLATE_2(QPair) 00204 #endif // (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) 00205 00206 QX_REGISTER_CLASS_NAME_TEMPLATE_2(QHash) 00207 QX_REGISTER_CLASS_NAME_TEMPLATE_2(QMultiHash) 00208 QX_REGISTER_CLASS_NAME_TEMPLATE_2(QMap) 00209 QX_REGISTER_CLASS_NAME_TEMPLATE_2(QMultiMap) 00210 00211 #ifdef _QX_ENABLE_BOOST 00212 QX_REGISTER_CLASS_NAME_TEMPLATE_1(boost::tuple) 00213 QX_REGISTER_CLASS_NAME_TEMPLATE_2(boost::tuple) 00214 QX_REGISTER_CLASS_NAME_TEMPLATE_3(boost::tuple) 00215 QX_REGISTER_CLASS_NAME_TEMPLATE_4(boost::tuple) 00216 QX_REGISTER_CLASS_NAME_TEMPLATE_5(boost::tuple) 00217 QX_REGISTER_CLASS_NAME_TEMPLATE_6(boost::tuple) 00218 QX_REGISTER_CLASS_NAME_TEMPLATE_7(boost::tuple) 00219 QX_REGISTER_CLASS_NAME_TEMPLATE_8(boost::tuple) 00220 QX_REGISTER_CLASS_NAME_TEMPLATE_9(boost::tuple) 00221 #endif // _QX_ENABLE_BOOST 00222 00223 QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::tuple) 00224 QX_REGISTER_CLASS_NAME_TEMPLATE_2(std::tuple) 00225 QX_REGISTER_CLASS_NAME_TEMPLATE_3(std::tuple) 00226 QX_REGISTER_CLASS_NAME_TEMPLATE_4(std::tuple) 00227 QX_REGISTER_CLASS_NAME_TEMPLATE_5(std::tuple) 00228 QX_REGISTER_CLASS_NAME_TEMPLATE_6(std::tuple) 00229 QX_REGISTER_CLASS_NAME_TEMPLATE_7(std::tuple) 00230 QX_REGISTER_CLASS_NAME_TEMPLATE_8(std::tuple) 00231 QX_REGISTER_CLASS_NAME_TEMPLATE_9(std::tuple) 00232 00233 #if (QT_VERSION >= QT_VERSION_CHECK(4, 6, 0)) 00234 QX_REGISTER_CLASS_NAME_TEMPLATE_1(QScopedPointer) 00235 #endif // (QT_VERSION >= QT_VERSION_CHECK(4, 6, 0)) 00236 00237 #endif // _QX_GET_CLASS_NAME_PRIMITIVE_H_