QxOrm.h 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. #ifndef _QX_ORM_H_
  32. #define _QX_ORM_H_
  33. #ifdef _MSC_VER
  34. #pragma once
  35. #endif
  36. /*!
  37. * \defgroup QxCommon QxCommon : QxOrm library common tools and macros
  38. * \defgroup QxCollection QxCollection : QxOrm library container (keep insertion order + quick access by index + quick access by key)
  39. * \defgroup QxSingleton QxSingleton : QxOrm library thread-safe singleton pattern
  40. * \defgroup QxFactory QxFactory : QxOrm library factory pattern used by introspection engine
  41. * \defgroup QxDataMember QxDataMember : QxOrm library data member (or property) used by introspection engine
  42. * \defgroup QxFunction QxFunction : QxOrm library function used by introspection engine
  43. * \defgroup QxRegister QxRegister : QxOrm library register context used by introspection engine (class, function, property...)
  44. * \defgroup QxSerialize QxSerialize : QxOrm library serialization engine based on 'boost::serialization' library
  45. * \defgroup QxTraits QxTraits : QxOrm library traits (template metaprogramming) not available in 'boost::type_traits' library
  46. * \defgroup QxDao QxDao : QxOrm library database communication used by persistence engine (ORM - Object Relational Mapping)
  47. * \defgroup QxValidator QxValidator : QxOrm library validation engine using validator pattern
  48. * \defgroup QxModelView QxModelView : All classes registered into QxOrm context can be used with Qt model/view architecture (Qt widgets and/or QML views)
  49. * \defgroup QxRestApi QxRestApi : QxOrm library REST API to send requests in JSON format from external application, from web-site or from QML view
  50. * \defgroup QxService QxService : QxOrm library services engine to provide easy and powerful way to create C++ application server (to transfer data over network)
  51. * \defgroup QxHttpServer QxHttpServer : QxOrm library HTTP server (based on QxService module) : support SSL/TLS, persistent connection, deliver static files, REST API, etc...
  52. * \defgroup QxCache QxCache : QxOrm library basic thread-safe cache feature to backup and restore any kind of objects (for example, object fetched from database)
  53. * \defgroup QxConvert QxConvert : QxOrm library conversion tools to-from QString type and to-from QVariant type
  54. * \defgroup QxExtras QxExtras : QxOrm library extra-tools (for example : enable std::optional for C++17 compilers, enable boost::optional feature without enabling all boost features)
  55. * \defgroup QxMemLeak QxMemLeak : QxOrm library memory leak detection (by Wu Yongwei)
  56. */
  57. #include <QxPrecompiled.h>
  58. #include <QxCommon/QxConfig.h>
  59. #include <QxCommon/QxMacro.h>
  60. #include <QxCommon/QxHashValue.h>
  61. #include <QxCommon/QxBool.h>
  62. #include <QxCommon/QxCache.h>
  63. #include <QxCommon/QxPropertyBag.h>
  64. #include <QxCommon/QxSimpleCrypt.h>
  65. #include <QxCommon/QxException.h>
  66. #include <QxCommon/QxExceptionCode.h>
  67. #include <QxCommon/QxAnyCastDynamic.h>
  68. #include <QxCommon/QxAny.h>
  69. #include <QxCollection/IxCollection.h>
  70. #include <QxCollection/QxCollection.h>
  71. #include <QxCollection/QxCollectionIterator.h>
  72. #include <QxCollection/QxForeach.h>
  73. #include <QxSingleton/IxSingleton.h>
  74. #include <QxSingleton/QxSingleton.h>
  75. #include <QxSingleton/QxSingletonX.h>
  76. #include <QxSingleton/QxSingletonInit.h>
  77. #include <QxFactory/IxFactory.h>
  78. #include <QxFactory/QxFactory.h>
  79. #include <QxFactory/QxFactoryX.h>
  80. #include <QxTraits/qx_traits.h>
  81. #include <QxDataMember/IxDataMember.h>
  82. #include <QxDataMember/IxDataMemberX.h>
  83. #include <QxDataMember/QxDataMember.h>
  84. #include <QxDataMember/QxDataMemberX.h>
  85. #include <QxDataMember/QxDataMember_QObject.h>
  86. #include <QxFunction/QxFunctionInclude.h>
  87. #include <QxDao/IxSqlQueryBuilder.h>
  88. #include <QxDao/QxSqlQueryBuilder.h>
  89. #include <QxDao/QxSqlQueryHelper.h>
  90. #include <QxDao/QxSqlQuery.h>
  91. #include <QxDao/QxSqlDatabase.h>
  92. #include <QxDao/IxSqlRelation.h>
  93. #include <QxDao/QxSqlRelation.h>
  94. #include <QxDao/QxSqlRelationParams.h>
  95. #include <QxDao/QxSqlRelation_ManyToMany.h>
  96. #include <QxDao/QxSqlRelation_ManyToOne.h>
  97. #include <QxDao/QxSqlRelation_OneToMany.h>
  98. #include <QxDao/QxSqlRelation_OneToOne.h>
  99. #include <QxDao/QxSqlRelation_RawData.h>
  100. #include <QxDao/QxDao.h>
  101. #include <QxDao/QxDaoThrowable.h>
  102. #include <QxDao/QxDao_Impl.h>
  103. #include <QxDao/QxDaoStrategy.h>
  104. #include <QxDao/QxDaoPointer.h>
  105. #include <QxDao/QxDao_IsDirty.h>
  106. #include <QxDao/QxSoftDelete.h>
  107. #include <QxDao/QxSqlError.h>
  108. #include <QxDao/QxSession.h>
  109. #include <QxDao/QxDateNeutral.h>
  110. #include <QxDao/QxTimeNeutral.h>
  111. #include <QxDao/QxDateTimeNeutral.h>
  112. #include <QxDao/IxPersistable.h>
  113. #include <QxDao/IxPersistableCollection.h>
  114. #include <QxDao/IxPersistableList.h>
  115. #include <QxDao/QxSqlJoin.h>
  116. #include <QxDao/QxSqlRelationLinked.h>
  117. #include <QxDao/QxDaoAsync.h>
  118. #include <QxDao/QxSqlSaveMode.h>
  119. #include <QxDao/QxSqlElement/QxSqlElement.h>
  120. #include <QxDao/QxSqlGenerator/QxSqlGenerator.h>
  121. #ifdef _QX_ENABLE_MONGODB
  122. #include <QxDao/QxMongoDB/QxMongoDB_Helper.h>
  123. #endif // _QX_ENABLE_MONGODB
  124. #ifdef _QX_ENABLE_BOOST_SERIALIZATION
  125. #include <QxSerialize/QxSerialize.h>
  126. #endif // _QX_ENABLE_BOOST_SERIALIZATION
  127. #include <QxSerialize/QxSerializeQDataStream.h>
  128. #include <QxSerialize/QDataStream/QxSerializeQDataStream_all_include.h>
  129. #include <QxSerialize/QxClone.h>
  130. #include <QxSerialize/QxDump.h>
  131. #ifndef _QX_NO_JSON
  132. #include <QxSerialize/QJson/QxSerializeQJson_all_include.h>
  133. #include <QxSerialize/QxSerializeQJson.h>
  134. #endif // _QX_NO_JSON
  135. #include <QxConvert/QxConvert.h>
  136. #include <QxConvert/QxConvert_Impl.h>
  137. #include <QxConvert/QxConvert_Export.h>
  138. #include <QxRegister/IxClass.h>
  139. #include <QxRegister/QxClass.h>
  140. #include <QxRegister/QxClassX.h>
  141. #include <QxRegister/QxClassName.h>
  142. #include <QxRegister/QxRegister.h>
  143. #include <QxRegister/QxRegisterInternalHelper.h>
  144. #include <QxRegister/IxTypeInfo.h>
  145. #include <QxRegister/QxRegisterQtProperty.h>
  146. #include <QxRegister/QxVersion.h>
  147. #ifndef _QX_NO_JSON
  148. #include <QxRestApi/QxRestApi.h>
  149. #endif // _QX_NO_JSON
  150. #include <QxValidator/IxValidator.h>
  151. #include <QxValidator/IxValidatorX.h>
  152. #include <QxValidator/QxInvalidValue.h>
  153. #include <QxValidator/QxInvalidValueX.h>
  154. #include <QxValidator/QxValidator.h>
  155. #include <QxValidator/QxValidatorX.h>
  156. #include <QxValidator/QxValidatorError.h>
  157. #include <QxValidator/QxValidatorFct.h>
  158. #ifdef _QX_ENABLE_QT_NETWORK
  159. #include <QxHttpServer/QxHttpRequest.h>
  160. #include <QxHttpServer/QxHttpResponse.h>
  161. #include <QxHttpServer/QxHttpServer.h>
  162. #include <QxHttpServer/QxHttpTransaction.h>
  163. #include <QxHttpServer/QxHttpCookie.h>
  164. #include <QxHttpServer/QxHttpSession.h>
  165. #include <QxHttpServer/QxHttpSessionManager.h>
  166. #endif // _QX_ENABLE_QT_NETWORK
  167. #endif // _QX_ORM_H_