DbStruct Pile   version 0.0.1
This pile contains classes that can be used to
dbstruct.h File Reference

Declarations for DbStruct class. More...

#include <dbstruct/dbstruct-config.h>
#include <dbstruct/dbobject.h>
#include <dbstruct/dbtable.h>
#include <dbstruct/dbview.h>
#include <QSqlDatabase>

Go to the source code of this file.

Classes

class  DbStructMeta
 The structure of a database. More...
 
class  DbStruct
 The structure of a database. More...
 

Macros

#define META_DATA_BASE_CTORS(__name__)
 Default constructors for inheritants of DbStruct. More...
 
#define META_DATA_BASE_GETTER
 Inheritants of DbStruct must implement a metaDatabase() method. More...
 
#define META_DATA_BASE(__name__)
 A complete implementation for a DbStruct inheritant. More...
 

Detailed Description

Declarations for DbStruct class.

Author
Nicu Tofan nicu..nosp@m.tofa.nosp@m.n@gma.nosp@m.il.c.nosp@m.om

Macro Definition Documentation

#define META_DATA_BASE (   __name__)
Value:
class %(EXPORT)s __name__ : public __name__ ## Meta, public DbStruct { \
public: \
};
#define META_DATA_BASE_CTORS(__name__)
Default constructors for inheritants of DbStruct.
Definition: dbstruct.h:165
#define META_DATA_BASE_GETTER
Inheritants of DbStruct must implement a metaDatabase() method.
Definition: dbstruct.h:170
The structure of a database.
Definition: dbstruct.h:130

A complete implementation for a DbStruct inheritant.

#define META_DATA_BASE_CTORS (   __name__)
Value:
__name__() : __name__ ## Meta(), DbStruct() {} \
__name__(const QSqlDatabase & db) : __name__ ## Meta(), DbStruct(db) {}
The structure of a database.
Definition: dbstruct.h:130

Default constructors for inheritants of DbStruct.

#define META_DATA_BASE_GETTER
Value:
virtual DbStructMeta * \
metaDatabase () { \
return static_cast<DbStructMeta*>(this); \
}
The structure of a database.
Definition: dbstruct.h:23

Inheritants of DbStruct must implement a metaDatabase() method.