DbStruct Pile   version 0.0.1
This pile contains classes that can be used to
DbObject Class Reference

The objecture of a database. More...

#include <dbobject.h>

+ Inheritance diagram for DbObject:

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.
 
DbStructMetaasStruct ()
 Get this instance as a DbStruct.
 
DbColumnasColumn ()
 Get this instance as a DbColumn.
 
DbRecordasRecord ()
 Get this instance as a DbRecord.
 
DbTableasTable ()
 Get this instance as a DbTable.
 
DbViewasView ()
 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.
 

Detailed Description

The objecture of a database.

Detailed description.

Member Enumeration Documentation

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

Constructor & Destructor Documentation

DbObject::DbObject ( )

Default constructor.

Detailed description for conobjector.

DbObject::~DbObject ( )
virtual

Destructor.

Detailed description for deobjector.


The documentation for this class was generated from the following files: