Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals | Related Pages

/var/home/joerg/c/CDB/include/CDB.h File Reference

#include "sysdep.h"
#include <cdbstring.h>
#include <iostream>
#include <string>
#include <list>
#include <time.h>
#include "cdb_driver_symbol.h"

Go to the source code of this file.

Data Structures

class  CDB
 Define methods for accessing the functions of a loaded driver. More...
class  CDBconnection
 The next database client library connection class. More...
class  CDBdate
 Abstract reprsenetation of a simple calender date. More...
class  CDBdatetime
 Abstract reprsenetation of a simple calender date. More...
class  CDBfield
 The next database client library field class. More...
class  CDBquery
 The next database library query and execution class. More...
class  CDBrow
 The next database client library row class. More...
class  CDBtime
 Abstract reprsenetation of a simple calender date. More...
class  CEXquery
 Exception class for CDBquery. More...

Defines

#define CDB_DEFAULT_RUNTIME_VERSION_CHECK
 Template to check if runtime and compilation version is the same.
#define CDB_NULL   (CDB_NULL_T(E_NULL_DUMMY))
#define CDB_OPT_DONT_CLOSE_HANDLE   1
 Option passable from driver to CDB.
#define CDB_VERSION_MAJOR   0
 CDB Version major number.
#define CDB_VERSION_MINOR   2
 CDB Version minor number.
#define CDB_VERSION_NUMBER   V_TO_NUM(CDB_VERSION_MAJOR, CDB_VERSION_MINOR, CDB_VERSION_RELEASE)
 Default comparison template.
#define CDB_VERSION_RELEASE   0
 CDB Version release number.
#define V_TO_NUM(maj, min, rel)   (maj * 10000 + min * 100 + rel)
 Template to generate unique number for comparisons.

Typedefs

typedef long long int int64_t
typedef CDBdate Tdate
 Abstract reprsenetation of a simple calender date.
typedef CDBdatetime Tdatetime
 Abstract reprsenetation of a simple calender date.
typedef CDBtime Ttime
 Abstract reprsenetation of a simple calender date.
typedef unsigned long long int uint64_t

Enumerations

enum  CDB_NULL_T { E_NULL_DUMMY }
 This type defines a NULL value. More...

Functions

void get_cdb_runtime_version (int *ma, int *mi, int *re)
 Retrieve runtime version.


Define Documentation

#define CDB_DEFAULT_RUNTIME_VERSION_CHECK
 

Value:

{ \
                int ma, mi, re; \
                get_cdb_runtime_version(&ma, &mi, &re); \
                if ( CDB_VERSION_NUMBER != V_TO_NUM(ma, mi, re) ) { \
                        std::cerr << "WARNING: CDB-Api version difference, compiled: "; \
                        std::cerr << CDB_VERSION_MAJOR << "." << CDB_VERSION_MINOR; \
                        std::cerr << "." << CDB_VERSION_RELEASE << std::endl; \
                        std::cerr << "                                      runtime: "; \
                        std::cerr << ma << "." << mi << "." << re << std::endl; \
                } \
        }
Template to check if runtime and compilation version is the same.

#define CDB_NULL   (CDB_NULL_T(E_NULL_DUMMY))
 

#define CDB_OPT_DONT_CLOSE_HANDLE   1
 

Option passable from driver to CDB.

#define CDB_VERSION_MAJOR   0
 

CDB Version major number.

#define CDB_VERSION_MINOR   2
 

CDB Version minor number.

#define CDB_VERSION_NUMBER   V_TO_NUM(CDB_VERSION_MAJOR, CDB_VERSION_MINOR, CDB_VERSION_RELEASE)
 

Default comparison template.

#define CDB_VERSION_RELEASE   0
 

CDB Version release number.

#define V_TO_NUM maj,
min,
rel   )     (maj * 10000 + min * 100 + rel)
 

Template to generate unique number for comparisons.


Typedef Documentation

typedef long long int int64_t
 

typedef class CDBdate Tdate
 

Abstract reprsenetation of a simple calender date.

This class defines a abstract type for simple calender date. It has a resolution up to day's.

typedef class CDBdatetime Tdatetime
 

Abstract reprsenetation of a simple calender date.

This class defines a abstract type for simple calender date and time. It has a resolution up to seconds.

typedef class CDBtime Ttime
 

Abstract reprsenetation of a simple calender date.

This class defines a abstract type for simple time. It has a resolution up to seconds.

typedef unsigned long long int uint64_t
 


Enumeration Type Documentation

enum CDB_NULL_T
 

This type defines a NULL value.

Enumerator:
E_NULL_DUMMY 


Function Documentation

void get_cdb_runtime_version int *  ma,
int *  mi,
int *  re
 

Retrieve runtime version.

This function retrieve the major, minor and release numbers of the currently used api object.

Parameters:
ma Pointer to major version value storage
mi Pointer to minor version value storage
re Pointer to release version value storage


Generated on Mon Feb 6 00:30:32 2006 for CDB by  doxygen 1.4.4