DbStruct Pile
version 0.0.1
This pile contains classes that can be used to
|
The objecture of a database. More...
#include <dbobject.h>
Public Types | |
enum | Type { DBO_INVALID = -1, DBO_STRUCT, DBO_COLUMN, DBO_RECORD, DBO_TABLE, DBO_SUBSET, DBO_CPLX_VIEW, DBO_CUSTOM, DBO_MAX } |
The types of objects that use this class as a base. More... | |
Public Member Functions | |
DbObject () | |
Default constructor. More... | |
virtual | ~DbObject () |
Destructor. More... | |
virtual Type | type () const |
The type of this object. | |
DbStructMeta * | asStruct () |
Get this instance as a DbStruct. | |
DbColumn * | asColumn () |
Get this instance as a DbColumn. | |
DbRecord * | asRecord () |
Get this instance as a DbRecord. | |
DbTable * | asTable () |
Get this instance as a DbTable. | |
DbView * | asView () |
Get this instance as a DbView. | |
bool | isStruct () |
Tell if this instance is a DbStruct. | |
bool | isColumn () |
Tell if this instance is a DbColumn. | |
bool | isRecord () |
Tell if this instance is a DbRecord. | |
bool | isTable () |
Tell if this instance is a DbTable. | |
bool | isView () |
Tell if this instance is a DbView. | |
bool | isCustom () |
Tell if this instance is a custom one. | |
The objecture of a database.
Detailed description.
enum DbObject::Type |
The types of objects that use this class as a base.
Enumerator | |
---|---|
DBO_STRUCT |
a DbStruct instance |
DBO_COLUMN |
a DbColumn instance |
DBO_RECORD |
a DbRecord instance |
DBO_TABLE |
a DbTable instance |
DBO_SUBSET |
a DbView instance that exposes all columns of a table |
DBO_CPLX_VIEW |
a DbView that draws information from multiple tables |
DBO_CUSTOM |
User-defined (none of the above) |
DBO_MAX |
number of valid types |
DbObject::DbObject | ( | ) |
Default constructor.
Detailed description for conobjector.
|
virtual |
Destructor.
Detailed description for deobjector.