| QxOrm 1.2.5 C++ Object Relational Mapping library

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Directories

- File List
- File Members

Classes | Namespaces | Defines | Functions
get_sql_type.h File Reference
QxTraits : QxOrm library traits (template metaprogramming) not available in 'boost::type_traits' library

qx::trait::get_sql_type<T>::get() : return type name under const char * format used by database engine to map a C++ type T More...

`#include <boost/mpl/if.hpp>`
`#include <boost/mpl/logical.hpp>`
`#include <boost/scoped_ptr.hpp>`
`#include <boost/shared_ptr.hpp>`
`#include <boost/intrusive_ptr.hpp>`
`#include <boost/optional.hpp>`
`#include <boost/type_traits/is_enum.hpp>`
`#include <boost/type_traits/is_same.hpp>`
`#include <QtCore/qsharedpointer.h>`
`#include <QxTraits/is_qx_registered.h>`
`#include <QxTraits/get_primary_key.h>`
`#include <QxTraits/remove_attr.h>`
`#include <QxTraits/get_class_name_primitive.h>`
`#include <QxDao/QxDaoPointer.h>`
`#include <QxDao/QxDateNeutral.h>`
`#include <QxDao/QxTimeNeutral.h>`
`#include <QxDao/QxDateTimeNeutral.h>`
`#include <QxCommon/QxBool.h>`

Go to the source code of this file.

## Classes
struct | qx::trait::detail::get_sql_type_helper< T >
struct | qx::trait::detail::get_sql_type< T >
struct | qx::trait::get_sql_type< T >
| qx::trait::get_sql_type<T>::get() : return type name under const char * format used by database engine to map a C++ type T More...
struct | qx::trait::get_sql_type< boost::optional< T > >
struct | qx::trait::get_sql_type< boost::scoped_ptr< T > >
struct | qx::trait::get_sql_type< boost::shared_ptr< T > >
struct | qx::trait::get_sql_type< boost::intrusive_ptr< T > >
struct | qx::trait::get_sql_type< QSharedPointer< T > >
struct | qx::trait::get_sql_type< qx::dao::ptr< T > >
struct | qx::trait::get_sql_type< std::pair< T1, T2 > >
struct | qx::trait::get_sql_type< QPair< T1, T2 > >
struct | qx::trait::get_sql_type< boost::tuple< T1, T2 > >
struct | qx::trait::get_sql_type< boost::tuple< T1, T2, T3 > >
struct | qx::trait::get_sql_type< boost::tuple< T1, T2, T3, T4 > >
struct | qx::trait::get_sql_type< boost::tuple< T1, T2, T3, T4, T5 > >
struct | qx::trait::get_sql_type< boost::tuple< T1, T2, T3, T4, T5, T6 > >
struct | qx::trait::get_sql_type< boost::tuple< T1, T2, T3, T4, T5, T6, T7 > >
struct | qx::trait::get_sql_type< boost::tuple< T1, T2, T3, T4, T5, T6, T7, T8 > >
struct | qx::trait::get_sql_type< boost::tuple< T1, T2, T3, T4, T5, T6, T7, T8, T9 > >
## Namespaces
namespace | qx
| Root namespace for all QxOrm library features.
namespace | qx::trait
| QxOrm library traits (template metaprogramming) not available in boost::type_traits library.
namespace | qx::trait::detail
| Internal helper tools for qx::trait namespace.
## Defines
#define | QX_REGISTER_TRAIT_GET_SQL_TYPE(className, sqlType)
## Functions
QX_DLL_EXPORT const char * | qx::trait::detail::get_sql_type_by_class_name (const char *sClassName, const char *sDefaultValue)

## Detailed Description

qx::trait::get_sql_type<T>::get() : return type name under const char * format used by database engine to map a C++ type T

Author:
  Lionel Marty

Definition in file get_sql_type.h.

## Define Documentation

#define QX_REGISTER_TRAIT_GET_SQL_TYPE | ( |  | className,
|  |  | sqlType
| ) |  |

Value:

    namespace qx { namespace trait { namespace detail { \
    template <> \
    struct get_sql_type< className > \
    { static inline const char * get() { return get_sql_type_by_class_name(#className, sqlType); } }; }}}

Definition at line 186 of file get_sql_type.h.