QxOrm 1.4.9
C++ Object Relational Mapping library
Loading...
Searching...
No Matches
QxPrecompiled.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_ORM_PRECOMPILED_HEADER_H_
33#define _QX_ORM_PRECOMPILED_HEADER_H_
34
35#ifdef _MSC_VER
36#pragma once
37#endif
38
39#ifdef _MSC_VER
40#if (_MSC_VER < 1800) // MSVC 2012 and below
41#ifndef _VARIADIC_MAX
42#define _VARIADIC_MAX 10 // to manage correctly std::tuple
43#endif // _VARIADIC_MAX
44#endif // (_MSC_VER < 1800)
45#endif // _MSC_VER
46
47#ifdef _MSC_VER
48#pragma warning(disable:4503) /* -- Disable 4503 warning because of boost template -- */
49#pragma warning(disable:4100) /* -- Disable warning 'unreferenced formal parameter' -- */
50#pragma warning(disable:4996)
51#pragma warning(disable:4661)
52#endif // _MSC_VER
53
54#include <iostream>
55#include <algorithm>
56#include <string>
57#include <vector>
58#include <list>
59#include <map>
60#include <set>
61#include <functional>
62#include <type_traits>
63#include <memory>
64#include <unordered_map>
65#include <unordered_set>
66#include <tuple>
67
68#include <QtCore/qglobal.h>
69#include <QtCore/qobject.h>
70#include <QtCore/qdebug.h>
71#include <QtCore/qstring.h>
72#include <QtCore/qstringlist.h>
73#include <QtCore/qvector.h>
74#include <QtCore/qlist.h>
75#include <QtCore/qmap.h>
76#include <QtCore/qset.h>
77#include <QtCore/qhash.h>
78#include <QtCore/qthread.h>
79#include <QtCore/qmutex.h>
80#include <QtCore/qdir.h>
81#include <QtCore/qfile.h>
82#include <QtCore/qdatetime.h>
83#include <QtCore/qvariant.h>
84#include <QtCore/qpair.h>
85
86#ifdef _MSC_VER
87#pragma warning(push)
88#pragma warning(disable:4396)
89#endif // _MSC_VER
90
91#ifndef _QX_ENABLE_BOOST
92#ifdef _QX_ENABLE_BOOST_SERIALIZATION
93#define _QX_ENABLE_BOOST
94#endif // _QX_ENABLE_BOOST_SERIALIZATION
95#endif // _QX_ENABLE_BOOST
96
97#ifdef _QX_ENABLE_BOOST
98#define BOOST_ALL_NO_LIB /* -- Disable auto-link feature provided by boost -- */
99#include <boost/config.hpp>
100#include <boost/version.hpp>
101#include <boost/scoped_ptr.hpp>
102#include <boost/shared_ptr.hpp>
103#include <boost/weak_ptr.hpp>
104#include <boost/intrusive_ptr.hpp>
105#include <boost/unordered_map.hpp>
106#include <boost/unordered_set.hpp>
107#include <boost/tuple/tuple.hpp>
108#include <boost/tuple/tuple_comparison.hpp>
109#include <boost/tuple/tuple_io.hpp>
110#include <boost/optional.hpp>
111#include <boost/none.hpp>
112#include <boost/serialization/force_include.hpp>
113#endif // _QX_ENABLE_BOOST
114
115#ifdef BOOST_DLLEXPORT
116#undef BOOST_DLLEXPORT
117#define BOOST_DLLEXPORT /* Nothing */
118#endif // BOOST_DLLEXPORT
119
120#ifdef _QX_ENABLE_BOOST_SERIALIZATION
121#ifdef _MSC_VER
122#include <boost/serialization/serialization.hpp> /* -- To avoid warning 4100 => header in precompiled header -- */
123#include <boost/archive/detail/iserializer.hpp>
124#include <boost/archive/detail/oserializer.hpp>
125#endif // _MSC_VER
126#endif // _QX_ENABLE_BOOST_SERIALIZATION
127
128#ifdef _MSC_VER
129#pragma warning(pop)
130#endif // _MSC_VER
131
132#include <QxCommon/QxConfig.h>
133#include <QxCommon/QxMacro.h>
134
135#endif // _QX_ORM_PRECOMPILED_HEADER_H_
List of parameters to compile and build QxOrm library.
List of common macros used by QxOrm library.