QxOrm 1.1.8
C++ Object Relational Mapping library
qx Namespace Reference

Root namespace for all QxOrm library features. More...

Namespaces

namespace  cache
 

Provide basic thread-safe cache feature to backup and restore any kind of objects (for example, object fetched from database)


namespace  cvt
 

Provide global functions to convert any kind of objects to/from QString and QVariant format.


namespace  dao
 

Database communication used by persistence engine (ORM - Object Relational Mapping)


namespace  foreach
 

Foreach-style (based on BOOST_FOREACH macro) to iterate over all stl, boost and Qt containers + qx::QxCollection<Key, Value> QxOrm library container.


namespace  function
 

Register function into QxOrm context used by introspection engine.


namespace  memory
 

QxOrm library memory leak detection (by Wu Yongwei)


namespace  serialization
 

QxOrm library serialization engine based on boost::serialization library.


namespace  service
 

QxOrm library services engine to provide easy and powerful way to create C++ application server (to transfer data over network)


namespace  trait
 

QxOrm library traits (template metaprogramming) not available in boost::type_traits library.


Classes

class  IxCollection
 qx::IxCollection : common interface for all QxOrm containers qx::QxCollection<Key, Value> More...
class  QxCollection
 qx::QxCollection<Key, Value> : QxOrm container (keep insertion order + quick access by index + quick access by key) More...
class  QxCollectionIterator
 qx::QxCollectionIterator : Java-style iterator to iterate over a qx::QxCollection<Key, Value> container More...
class  QxBool
 qx_bool : boolean type with code and description message when an error occured More...
class  IxSqlQueryBuilder
 qx::IxSqlQueryBuilder : common interface to build SQL queries to communicate with database More...
class  IxSqlRelation
 qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 tables in database) More...
class  QxDateNeutral
 qx::QxDateNeutral : helper class to store a date value into database under neutral format (YYYYMMDD) => cross database compatibility More...
class  QxDateTimeNeutral
 qx::QxDateTimeNeutral : helper class to store a date-time value into database under neutral format (YYYYMMDDHHMMSS) => cross database compatibility More...
class  QxSession
 qx::QxSession : define a session to manage automatically database transactions (using C++ RAII) More...
class  QxSoftDelete
 qx::QxSoftDelete : soft delete (or logical delete) behavior to update a row into database (flag it as deleted) instead of delete it from database More...
class  QxSqlDatabase
 qx::QxSqlDatabase : define all parameters to connect to database and retrieve a valid connection by thread (this class is a singleton and is thread-safe) More...
class  QxSqlQuery
 qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library, and used by qx::dao::xxx functions to filter elements fetched from database More...
class  QxSqlQueryBuilder
 qx::QxSqlQueryBuilder<T> : concrete SQL query builder for the class T with a cache mechanism to backup and restore queries already builded by the program More...
class  QxSqlRelation
 qx::QxSqlRelation<DataType, Owner> : base class for all relationships defined between 2 classes (or between 2 tables in database) More...
class  QxSqlRelation_ManyToMany
 qx::QxSqlRelation_ManyToMany<DataType, Owner> : manage a relationship many-to-many defined between 2 classes (or between 2 tables in database) More...
class  QxSqlRelation_ManyToOne
 qx::QxSqlRelation_ManyToOne<DataType, Owner> : manage a relationship many-to-one defined between 2 classes (or between 2 tables in database) More...
class  QxSqlRelation_OneToMany
 qx::QxSqlRelation_OneToMany<DataType, Owner> : manage a relationship one-to-many defined between 2 classes (or between 2 tables in database) More...
class  QxSqlRelation_OneToOne
 qx::QxSqlRelation_OneToOne<DataType, Owner> : manage a relationship one-to-one defined between 2 classes (or between 2 tables in database) More...
class  QxSqlRelationParams
 qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL queries builded by QxOrm library More...
class  QxTimeNeutral
 qx::QxTimeNeutral : helper class to store a time value into database under neutral format (HHMMSS) => cross database compatibility More...
class  IxDataMember
 qx::IxDataMember : common interface for all class properties registered into QxOrm context More...
class  IxDataMemberX
 qx::IxDataMemberX : common interface for a list of IxDataMember class properties registered into QxOrm context (for example, list of data member of a class) More...
class  QxDataMember
 qx::QxDataMember<DataType, Owner> : concrete property of type DataType registered into QxOrm context for the class Owner More...
class  QxDataMemberX
 qx::QxDataMemberX<T> : concrete list of properties registered into QxOrm context for the class T More...
class  IxFactory
 qx::IxFactory : common interface for all classes that can be created dynamically using the class name More...
class  QxFactory
 qx::QxFactory<T> : concrete factory class to create object of type T dynamically using the class name More...
class  QxFactoryX
 qx::QxFactoryX : list of all classes registered with QxOrm library factory pattern to create object instance dynamically using the class name More...
class  IxFunction
 qx::IxFunction : common interface for all functions registered into QxOrm context (used by introspection engine) More...
class  QxFunction_0
 qx::QxFunction_0<Owner, R> : concrete function registered into QxOrm context defined into class Owner, returning an object of type R and without parameter More...
class  QxFunction_0< void, R >
class  QxFunction_1
 qx::QxFunction_1<Owner, R, P1> : concrete function registered into QxOrm context defined into class Owner, returning an object of type R and with 1 parameter P1 More...
class  QxFunction_1< void, R, P1 >
class  QxFunction_2
 qx::QxFunction_2<Owner, R, P1, P2> : concrete function registered into QxOrm context defined into class Owner, returning an object of type R and with 2 parameters P1, P2 More...
class  QxFunction_2< void, R, P1, P2 >
class  QxFunction_3
 qx::QxFunction_3<Owner, R, P1, P2, P3> : concrete function registered into QxOrm context defined into class Owner, returning an object of type R and with 3 parameters P1, P2, P3 More...
class  QxFunction_3< void, R, P1, P2, P3 >
class  QxFunction_4
 qx::QxFunction_4<Owner, R, P1, P2, P3, P4> : concrete function registered into QxOrm context defined into class Owner, returning an object of type R and with 4 parameters P1, P2, P3, P4 More...
class  QxFunction_4< void, R, P1, P2, P3, P4 >
class  QxFunction_5
 qx::QxFunction_5<Owner, R, P1, P2, P3, P4, P5> : concrete function registered into QxOrm context defined into class Owner, returning an object of type R and with 5 parameters P1, P2, P3, P4, P5 More...
class  QxFunction_5< void, R, P1, P2, P3, P4, P5 >
class  QxFunction_6
 qx::QxFunction_6<Owner, R, P1, P2, P3, P4, P5, P6> : concrete function registered into QxOrm context defined into class Owner, returning an object of type R and with 6 parameters P1, P2, P3, P4, P5, P6 More...
class  QxFunction_6< void, R, P1, P2, P3, P4, P5, P6 >
class  QxFunction_7
 qx::QxFunction_7<Owner, R, P1, P2, P3, P4, P5, P6, P7> : concrete function registered into QxOrm context defined into class Owner, returning an object of type R and with 7 parameters P1, P2, P3, P4, P5, P6, P7 More...
class  QxFunction_7< void, R, P1, P2, P3, P4, P5, P6, P7 >
class  QxFunction_8
 qx::QxFunction_8<Owner, R, P1, P2, P3, P4, P5, P6, P7, P8> : concrete function registered into QxOrm context defined into class Owner, returning an object of type R and with 8 parameters P1, P2, P3, P4, P5, P6, P7, P8 More...
class  QxFunction_8< void, R, P1, P2, P3, P4, P5, P6, P7, P8 >
class  QxFunction_9
 qx::QxFunction_9<Owner, R, P1, P2, P3, P4, P5, P6, P7, P8, P9> : concrete function registered into QxOrm context defined into class Owner, returning an object of type R and with 9 parameters P1, P2, P3, P4, P5, P6, P7, P8, P9 More...
class  QxFunction_9< void, R, P1, P2, P3, P4, P5, P6, P7, P8, P9 >
class  IxClass
 qx::IxClass : common interface for all classes registered into QxOrm context More...
class  IxTypeInfo
class  QxClass
 qx::QxClass<T> : concrete class of type T registered into QxOrm context (this class is a singleton and is thread-safe) More...
class  QxClassName
 qx::QxClassName<T> : class helper to retrieve the class name of type T under const char * format More...
class  QxClassX
 qx::QxClassX : list of all classes registered into QxOrm context (this container is a singleton) More...
class  QxArchive
 qx::QxArchive : provide some tools to serialize a class registered into QxOrm context into/from binary/text/XML archives (file, string, etc.) More...
class  IxBoostSerializeRegisterHelper
class  QxBoostInitGuid
class  QxBoostSerializeHelper
class  QxBoostSerializeRegisterHelper
class  QxBoostSerializeRegisterHelperX
class  IxSingleton
 qx::IxSingleton : common interface for all singleton of QxOrm library More...
class  QxSingleton
 qx::QxSingleton<T> : concrete class to define a thread-safe singleton of type T More...
class  QxSingletonX
 qx::QxSingletonX : list of all singleton defined by QxOrm library (this container is also a singleton) More...
class  QxXml
class  QxXmlReader
class  QxXmlWriter

Typedefs

typedef boost::shared_ptr
< IxSqlQueryBuilder
IxSqlQueryBuilder_ptr
typedef QxCollection< QString,
IxSqlRelation * > 
IxSqlRelationX
typedef boost::shared_ptr
< IxDataMember
IxDataMember_ptr
typedef boost::shared_ptr
< IxDataMemberX
IxDataMemberX_ptr
typedef boost::shared_ptr
< IxFunction
IxFunction_ptr
typedef QxCollection< QString,
IxFunction_ptr
IxFunctionX
typedef boost::shared_ptr
< IxFunctionX
IxFunctionX_ptr
typedef boost::shared_ptr
< IxClass
IxClass_ptr

Functions

boost::any create (const QString &sKey)
 Return a smart-pointer new instance of object (boost::shared_ptr<T>) associated by key sKey using boost::any type (for example : qx::create("drug") return a new instance of smart-pointer drug class into boost::any type)
template<typename T >
T * create_nude_ptr (const QString &sKey)
 Return a nude pointer (be careful with memory leak) of type T associated by key sKey, or return NULL if sKey is not registered into factory engine.
template<class T >
void register_class (T &t)
 qx::register_class<T>(T & t) : specialize this template to register a class of type T into QxOrm context
template<class T >
T * clone_to_nude_ptr (const T &obj)
 qx::clone_to_nude_ptr(const T & obj) : return a nude pointer (be careful with memory leak) of a new instance of type T cloned from obj
template<class T >
boost::shared_ptr< T > clone (const T &obj)
 qx::clone(const T & obj) : return a boost smart-pointer (boost::shared_ptr<T>) of a new instance of type T cloned from obj
template<class T >
QSharedPointer< T > clone_to_qt_shared_ptr (const T &obj)
 qx::clone_to_qt_shared_ptr(const T & obj) : return a Qt smart-pointer (QSharedPointer<T>) of a new instance of type T cloned from obj
template<class T >
void dump (const T &t)
 qx::dump(const T & t) : dump class of type T registered into QxOrm context using XML serialization engine

Detailed Description

Root namespace for all QxOrm library features.

Class for non-reentrant fast mutexes. This is the null implementation for single-threaded environments.


Typedef Documentation

typedef boost::shared_ptr<IxClass> qx::IxClass_ptr

Definition at line 105 of file IxClass.h.

typedef boost::shared_ptr<IxDataMember> qx::IxDataMember_ptr

Definition at line 240 of file IxDataMember.h.

typedef boost::shared_ptr<IxDataMemberX> qx::IxDataMemberX_ptr

Definition at line 97 of file IxDataMemberX.h.

typedef boost::shared_ptr<IxFunction> qx::IxFunction_ptr

Definition at line 118 of file IxFunction.h.

Definition at line 119 of file IxFunction.h.

typedef boost::shared_ptr<IxFunctionX> qx::IxFunctionX_ptr

Definition at line 120 of file IxFunction.h.

typedef boost::shared_ptr<IxSqlQueryBuilder> qx::IxSqlQueryBuilder_ptr

Definition at line 131 of file IxSqlQueryBuilder.h.

Definition at line 49 of file IxSqlRelation.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines