Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members

FXEX::DbControl Class Reference

DbControl is an object which is a storage unit for some type of in-memory database (I think?). More...

#include <DbControl.h>

Inheritance diagram for FXEX::DbControl::

FXEX::FXBaseObject FXObject List of all members.

Public Types

enum  {
  ID_DB_FIRST = 50000,
  ID_OPEN,
  ID_CLOSE,
  ID_FIELD,
  ID_FOCUSIN,
  ID_FOCUSOUT,
  ID_INSERT,
  ID_EDIT,
  ID_KILL,
  ID_POST,
  ID_CANCEL,
  ID_QUERY,
  ID_SCROLL,
  ID_FIRST,
  ID_PRIOR,
  ID_NEXT,
  ID_LAST,
  ID_PRINT,
  ID_DB_LAST
}
enum  DbMode {
  DB_INACTIVE,
  DB_BROWSE,
  DB_INSERT,
  DB_EDIT
}
enum  DbPosition {
  DB_BOF = -4,
  DB_EOF = -3,
  DB_FIRST = -2,
  DB_PRIOR = -1,
  DB_CURRENT = 0,
  DB_NEXT = 1,
  DB_LAST = 2,
  DB_FIND = 3
}

Public Methods

 DbControl (FXWindow *own, FXObject *tgt=NULL, FXSelector sel=0)
virtual ~DbControl ()
FXbool open ()
FXbool close ()
FXbool insert ()
FXbool post ()
FXbool cancel ()
FXbool kill ()
FXbool edit ()
FXbool query ()
FXbool first ()
FXbool prior ()
FXbool next ()
FXbool last ()
FXbool print ()
FXbool isBof () const
FXbool isEof () const
DbMode getMode () const
DbFieldgetField (FXint i=-1) const
DbFieldgetField (const FXString &) const
FXString getQuery () const
void setQuery (const FXString &q)

Detailed Description

DbControl is an object which is a storage unit for some type of in-memory database (I think?).

Definition at line 24 of file DbControl.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
ID_DB_FIRST  
ID_OPEN  
ID_CLOSE  
ID_FIELD   field operation.
ID_FOCUSIN  
ID_FOCUSOUT  
ID_INSERT   record operation.
ID_EDIT  
ID_KILL  
ID_POST  
ID_CANCEL  
ID_QUERY   navigation.
ID_SCROLL  
ID_FIRST  
ID_PRIOR  
ID_NEXT  
ID_LAST  
ID_PRINT   misc operations.
ID_DB_LAST  

Definition at line 29 of file DbControl.h.

enum FXEX::DbControl::DbMode
 

Current mode of operation.

Enumeration values:
DB_INACTIVE  
DB_BROWSE  
DB_INSERT  
DB_EDIT  

Definition at line 53 of file DbControl.h.

enum FXEX::DbControl::DbPosition
 

Enumeration values:
DB_BOF  
DB_EOF  
DB_FIRST  
DB_PRIOR  
DB_CURRENT  
DB_NEXT  
DB_LAST  
DB_FIND  

Definition at line 61 of file DbControl.h.


Constructor & Destructor Documentation

FXEX::DbControl::DbControl FXWindow * own,
FXObject * tgt = NULL,
FXSelector sel = 0
 

ctor.

virtual FXEX::DbControl::~DbControl [virtual]
 

dtor.


Member Function Documentation

FXbool FXEX::DbControl::open
 

accessor methods.

FXbool FXEX::DbControl::close
 

FXbool FXEX::DbControl::insert
 

FXbool FXEX::DbControl::post
 

FXbool FXEX::DbControl::cancel
 

FXbool FXEX::DbControl::kill
 

FXbool FXEX::DbControl::edit
 

FXbool FXEX::DbControl::query
 

FXbool FXEX::DbControl::first
 

FXbool FXEX::DbControl::prior
 

FXbool FXEX::DbControl::next
 

FXbool FXEX::DbControl::last
 

FXbool FXEX::DbControl::print
 

FXbool FXEX::DbControl::isBof const
 

are we at the bottom of the dataset.

FXbool FXEX::DbControl::isEof const
 

are we are the end of the file.

DbMode FXEX::DbControl::getMode const [inline]
 

get the current mode of operation.

Definition at line 103 of file DbControl.h.

DbField* FXEX::DbControl::getField FXint i = -1 const
 

get pointer to specific column (by column number), from current row.

DbField* FXEX::DbControl::getField const FXString & const
 

get pointer to specific column (by column name), from current row.

FXString FXEX::DbControl::getQuery const [inline]
 

return the query applied to the data.

Definition at line 112 of file DbControl.h.

void FXEX::DbControl::setQuery const FXString & q [inline]
 

set the query applied to the data.

Definition at line 115 of file DbControl.h.