QxOrm 介绍
QxOrm 是一个 C++ 库用来提供 ORM 功能,基于Qt 的 Qtsql 库。
主要特性:
- persistence : communication with a lot of databases (with 1-1 , 1-n , n-1 and n-n relationships)
- serialization : binary and xml format
- reflection : access to classes deFinitions, retrieve properties and call classes methods
优点:
- non intrusive : the C++ setting function doesn’t modified class deFinition, QxOrm can be used in existing projects
- no code generation
- no xml mapping file
- classes doesn’t need to inherit from a ‘super object’
- template Meta-programming : no macro hack
- works with Visual C++ 2008 or 2010 on Windows and GCC 4.4.1 on Linux (other platforms will be tested soon : Mac, phones…)
- only one file < QxOrm.h> to include in precompiled-header (need precompiled-header file to reduce compilation times)