dbComponent Class Reference

#include <query.h>

List of all members.


Detailed Description

This class represents component of the structure.

It is mostly needed for implementation of application specific database types. For example, look at dbDate class. It contains int4 jday component which stores time in seconds sinse 1970. This class defines its own comparison methods:

     dbQueryExpression operator == (char const* field) {
         dbQueryExpression expr;
         expr = dbComponent(field,"jday"),"=",jday;
         return expr;
     }
 
Making it possible to sepcify queries like this (assume that record has column "released" with type dbDate:
     dbQuery q;
     dbDate  date;
     q = date == "released";
 

Public Member Functions

 dbComponent (char const *s, char const *f=NULL)

Public Attributes

char const * structure
char const * field

Constructor & Destructor Documentation

dbComponent ( char const *  s,
char const *  f = NULL 
) [inline]


Member Data Documentation

char const* structure

char const* field


Online Library Docs

sipXecs home page

Version 4.2.1-018930 2010-07-31T01:13:23 build16 abuild