QxOrm  1.2.3
C++ Object Relational Mapping library
get_class_name_primitive.h
Go to the documentation of this file.
00001 /****************************************************************************
00002 **
00003 ** http://www.qxorm.com/
00004 ** http://sourceforge.net/projects/qxorm/
00005 ** Original file by Lionel Marty
00006 **
00007 ** This file is part of the QxOrm library
00008 **
00009 ** This software is provided 'as-is', without any express or implied
00010 ** warranty. In no event will the authors be held liable for any
00011 ** damages arising from the use of this software.
00012 **
00013 ** GNU Lesser General Public License Usage
00014 ** This file must be used under the terms of the GNU Lesser
00015 ** General Public License version 2.1 as published by the Free Software
00016 ** Foundation and appearing in the file 'license.lgpl.txt' included in the
00017 ** packaging of this file.  Please review the following information to
00018 ** ensure the GNU Lesser General Public License version 2.1 requirements
00019 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
00020 **
00021 ** If you have questions regarding the use of this file, please contact :
00022 ** contact@qxorm.com
00023 **
00024 ****************************************************************************/
00025 
00026 #ifndef _QX_GET_CLASS_NAME_PRIMITIVE_H_
00027 #define _QX_GET_CLASS_NAME_PRIMITIVE_H_
00028 
00029 #ifdef _MSC_VER
00030 #pragma once
00031 #endif
00032 
00040 #include <string>
00041 #include <vector>
00042 #include <list>
00043 #include <map>
00044 #include <set>
00045 
00046 #include <boost/scoped_ptr.hpp>
00047 #include <boost/shared_ptr.hpp>
00048 #include <boost/unordered_map.hpp>
00049 #include <boost/unordered_set.hpp>
00050 #include <boost/tuple/tuple.hpp>
00051 
00052 #include <QtCore/qobject.h>
00053 #include <QtCore/qstring.h>
00054 #include <QtCore/qstringlist.h>
00055 #include <QtCore/qvector.h>
00056 #include <QtCore/qlist.h>
00057 #include <QtCore/qmap.h>
00058 #include <QtCore/qset.h>
00059 #include <QtCore/qhash.h>
00060 #include <QtCore/qdatetime.h>
00061 #include <QtCore/qvariant.h>
00062 #include <QtCore/qbytearray.h>
00063 #include <QtCore/qlinkedlist.h>
00064 #include <QtCore/qpair.h>
00065 #include <QtCore/qpoint.h>
00066 #include <QtCore/qrect.h>
00067 #include <QtCore/qregexp.h>
00068 #include <QtCore/qsharedpointer.h>
00069 #include <QtCore/qsize.h>
00070 #include <QtCore/qurl.h>
00071 #include <QtCore/quuid.h>
00072 #include <QtCore/QWeakPointer>
00073 
00074 #if _QX_ENABLE_QT_GUI_DEPENDENCY
00075 #include <QtGui/qcolor.h>
00076 #include <QtGui/qfont.h>
00077 #include <QtGui/qimage.h>
00078 #include <QtGui/qbrush.h>
00079 #include <QtGui/qmatrix.h>
00080 #include <QtGui/qpicture.h>
00081 #include <QtGui/qpixmap.h>
00082 #include <QtGui/qregion.h>
00083 #endif // _QX_ENABLE_QT_GUI_DEPENDENCY
00084 
00085 #if (QT_VERSION >= 0x040600)
00086 #include <QtCore/qscopedpointer.h>
00087 #endif // (QT_VERSION >= 0x040600)
00088 
00089 #include <QxDao/QxDaoPointer.h>
00090 
00091 #include <QxTraits/get_class_name.h>
00092 
00093 QX_REGISTER_CLASS_NAME(bool)
00094 QX_REGISTER_CLASS_NAME(int)
00095 QX_REGISTER_CLASS_NAME(short)
00096 QX_REGISTER_CLASS_NAME(long)
00097 QX_REGISTER_CLASS_NAME(float)
00098 QX_REGISTER_CLASS_NAME(double)
00099 QX_REGISTER_CLASS_NAME(long double)
00100 QX_REGISTER_CLASS_NAME(char)
00101 QX_REGISTER_CLASS_NAME(unsigned int)
00102 QX_REGISTER_CLASS_NAME(unsigned short)
00103 QX_REGISTER_CLASS_NAME(unsigned long)
00104 QX_REGISTER_CLASS_NAME(unsigned char)
00105 
00106 QX_REGISTER_CLASS_NAME(std::string)
00107 QX_REGISTER_CLASS_NAME(std::wstring)
00108 
00109 QX_REGISTER_CLASS_NAME(QObject)
00110 QX_REGISTER_CLASS_NAME(QString)
00111 QX_REGISTER_CLASS_NAME(QStringList)
00112 QX_REGISTER_CLASS_NAME(QByteArray)
00113 QX_REGISTER_CLASS_NAME(QDate)
00114 QX_REGISTER_CLASS_NAME(QDateTime)
00115 QX_REGISTER_CLASS_NAME(QPoint)
00116 QX_REGISTER_CLASS_NAME(QRect)
00117 QX_REGISTER_CLASS_NAME(QRegExp)
00118 QX_REGISTER_CLASS_NAME(QSize)
00119 QX_REGISTER_CLASS_NAME(QTime)
00120 QX_REGISTER_CLASS_NAME(QUrl)
00121 QX_REGISTER_CLASS_NAME(QVariant)
00122 QX_REGISTER_CLASS_NAME(QUuid)
00123 
00124 #if _QX_ENABLE_QT_GUI_DEPENDENCY
00125 QX_REGISTER_CLASS_NAME(QColor)
00126 QX_REGISTER_CLASS_NAME(QFont)
00127 QX_REGISTER_CLASS_NAME(QImage)
00128 QX_REGISTER_CLASS_NAME(QBrush)
00129 QX_REGISTER_CLASS_NAME(QMatrix)
00130 QX_REGISTER_CLASS_NAME(QPicture)
00131 QX_REGISTER_CLASS_NAME(QPixmap)
00132 QX_REGISTER_CLASS_NAME(QRegion)
00133 #endif // _QX_ENABLE_QT_GUI_DEPENDENCY
00134 
00135 QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::allocator)
00136 QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::vector)
00137 QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::list)
00138 QX_REGISTER_CLASS_NAME_TEMPLATE_1(std::set)
00139 
00140 QX_REGISTER_CLASS_NAME_TEMPLATE_1(boost::shared_ptr)
00141 QX_REGISTER_CLASS_NAME_TEMPLATE_1(boost::scoped_ptr)
00142 QX_REGISTER_CLASS_NAME_TEMPLATE_1(boost::weak_ptr)
00143 
00144 QX_REGISTER_CLASS_NAME_TEMPLATE_1(QVector)
00145 QX_REGISTER_CLASS_NAME_TEMPLATE_1(QList)
00146 QX_REGISTER_CLASS_NAME_TEMPLATE_1(QLinkedList)
00147 QX_REGISTER_CLASS_NAME_TEMPLATE_1(QSharedPointer)
00148 QX_REGISTER_CLASS_NAME_TEMPLATE_1(QWeakPointer)
00149 
00150 QX_REGISTER_CLASS_NAME_TEMPLATE_1(qx::dao::ptr)
00151 
00152 QX_REGISTER_CLASS_NAME_TEMPLATE_2(std::pair)
00153 QX_REGISTER_CLASS_NAME_TEMPLATE_2(std::map)
00154 
00155 QX_REGISTER_CLASS_NAME_TEMPLATE_2(boost::unordered_map)
00156 QX_REGISTER_CLASS_NAME_TEMPLATE_2(boost::unordered_multimap)
00157 QX_REGISTER_CLASS_NAME_TEMPLATE_2(boost::unordered_set)
00158 QX_REGISTER_CLASS_NAME_TEMPLATE_2(boost::unordered_multiset)
00159 
00160 QX_REGISTER_CLASS_NAME_TEMPLATE_2(QPair)
00161 QX_REGISTER_CLASS_NAME_TEMPLATE_2(QHash)
00162 QX_REGISTER_CLASS_NAME_TEMPLATE_2(QMultiHash)
00163 QX_REGISTER_CLASS_NAME_TEMPLATE_2(QMap)
00164 QX_REGISTER_CLASS_NAME_TEMPLATE_2(QMultiMap)
00165 
00166 QX_REGISTER_CLASS_NAME_TEMPLATE_1(boost::tuple)
00167 QX_REGISTER_CLASS_NAME_TEMPLATE_2(boost::tuple)
00168 QX_REGISTER_CLASS_NAME_TEMPLATE_3(boost::tuple)
00169 QX_REGISTER_CLASS_NAME_TEMPLATE_4(boost::tuple)
00170 QX_REGISTER_CLASS_NAME_TEMPLATE_5(boost::tuple)
00171 QX_REGISTER_CLASS_NAME_TEMPLATE_6(boost::tuple)
00172 QX_REGISTER_CLASS_NAME_TEMPLATE_7(boost::tuple)
00173 QX_REGISTER_CLASS_NAME_TEMPLATE_8(boost::tuple)
00174 QX_REGISTER_CLASS_NAME_TEMPLATE_9(boost::tuple)
00175 
00176 #if (QT_VERSION >= 0x040600)
00177 QX_REGISTER_CLASS_NAME_TEMPLATE_1(QScopedPointer)
00178 #endif // (QT_VERSION >= 0x040600)
00179 
00180 #endif // _QX_GET_CLASS_NAME_PRIMITIVE_H_