Main Page | Class Hierarchy | Class List | File List | Class Members

DbTable Class Reference

database table description More...

#include <db_module.h>

List of all members.

Public Member Functions

string getName ()
void setName (string d)
string getNamemask ()
void setNamemask (string d)
string getDescription ()
void setDescription (string d)
int size ()
 DbTable (const string n, const string m, const string d)
 ~DbTable ()
void clear ()
void set_request (const string n)
void set_update (const string n)
void add (const string n, const string d, const string df, bool v, int ix=0)
void add (const string n, bool v)
void add (const string n, const string d, const string df, int v, int ix=0)
void add (const string n, int v)
void add (const string n, const string d, const string df, unsigned int v, int ix=0)
void add (const string n, unsigned int v)
void add (const string n, const string d, const string df, unsigned long int v, int ix=0)
void add (const string n, unsigned long int v)
void add (const string n, const string d, const string df, float v, int ix=0)
void add (const string n, float v)
void add (const string n, const string d, const string df, string v, int l, int ix=0)
void add (const string n, string v, int l=0)
void add (const string n, const string d, const string df, char *v, int l, int ix=0)
void add (const string n, char *v, int l=0)
void add (const string n, const string d, const string df, time_t v, int ix=0)
void add (const string n, time_t v)
void add (const string n, const string d, const string df, ipaddr v, int ix=0)
void add (const string n, ipaddr v)
string get_name (int n)
string get_descr (int n)
string get_defv (int n)
int get_type (int n)
int get_idx (int n)
bool get_request (int n)
bool get_update (int n)
bool get (const string n, bool *v)
void set (const string n, bool v)
bool get (const string n, int *v)
void set (const string n, int v)
bool get (const string n, float *v)
void set (const string n, float v)
bool get (const string n, char *v)
bool get (const string n, string *v)
int getslen (const string n)
void set (const string n, string v)
bool get (const string n, time_t *v)
void set (const string n, time_t v)
bool get (const string n, ipaddr *v)
void set (const string n, ipaddr v)


Detailed Description

database table description

Version:
1
Author:
rv


Constructor & Destructor Documentation

DbTable::DbTable const string  n,
const string  m,
const string  d
[inline]
 

init

DbTable::~DbTable  )  [inline]
 

free


Member Function Documentation

void DbTable::add const string  n,
ipaddr  v
[inline]
 

short form of add

void DbTable::add const string  n,
const string  d,
const string  df,
ipaddr  v,
int  ix = 0
[inline]
 

add ipaddr type

void DbTable::add const string  n,
time_t  v
[inline]
 

short form of add

void DbTable::add const string  n,
const string  d,
const string  df,
time_t  v,
int  ix = 0
[inline]
 

add time_t type

void DbTable::add const string  n,
char *  v,
int  l = 0
[inline]
 

short form

void DbTable::add const string  n,
const string  d,
const string  df,
char *  v,
int  l,
int  ix = 0
[inline]
 

add char* type

void DbTable::add const string  n,
string  v,
int  l = 0
[inline]
 

short form

void DbTable::add const string  n,
const string  d,
const string  df,
string  v,
int  l,
int  ix = 0
[inline]
 

add string type

void DbTable::add const string  n,
float  v
[inline]
 

short form

void DbTable::add const string  n,
const string  d,
const string  df,
float  v,
int  ix = 0
[inline]
 

add float type

void DbTable::add const string  n,
unsigned long int  v
[inline]
 

short form of add

void DbTable::add const string  n,
const string  d,
const string  df,
unsigned long int  v,
int  ix = 0
[inline]
 

add unsigned long int type

void DbTable::add const string  n,
unsigned int  v
[inline]
 

short form of add

void DbTable::add const string  n,
const string  d,
const string  df,
unsigned int  v,
int  ix = 0
[inline]
 

add unsigned int type

void DbTable::add const string  n,
int  v
[inline]
 

short form of add

void DbTable::add const string  n,
const string  d,
const string  df,
int  v,
int  ix = 0
[inline]
 

add int type

void DbTable::add const string  n,
bool  v
[inline]
 

stripped form

void DbTable::add const string  n,
const string  d,
const string  df,
bool  v,
int  ix = 0
[inline]
 

add bool type

void DbTable::clear  )  [inline]
 

clear all

bool DbTable::get const string  n,
ipaddr v
[inline]
 

get ipaddr value

Returns:
true if found, false if not

bool DbTable::get const string  n,
time_t *  v
[inline]
 

get datetime value

bool DbTable::get const string  n,
string *  v
[inline]
 

get string(char*) value

bool DbTable::get const string  n,
char *  v
[inline]
 

get string(char*) value

bool DbTable::get const string  n,
float *  v
[inline]
 

get float value

bool DbTable::get const string  n,
int *  v
[inline]
 

get int value

bool DbTable::get const string  n,
bool *  v
[inline]
 

get bool value

string DbTable::get_defv int  n  )  [inline]
 

get database field default value

string DbTable::get_descr int  n  )  [inline]
 

get database field description

int DbTable::get_idx int  n  )  [inline]
 

get db field index

string DbTable::get_name int  n  )  [inline]
 

get database field name

bool DbTable::get_request int  n  )  [inline]
 

get request

int DbTable::get_type int  n  )  [inline]
 

get db field type number

bool DbTable::get_update int  n  )  [inline]
 

get update

string DbTable::getDescription  )  [inline]
 

get table description

Returns:
description_

string DbTable::getName  )  [inline]
 

get table name

Returns:
name_

string DbTable::getNamemask  )  [inline]
 

get table name mask

Returns:
namemask_

int DbTable::getslen const string  n  )  [inline]
 

get string length

void DbTable::set const string  n,
ipaddr  v
[inline]
 

set ipaddr value

void DbTable::set const string  n,
time_t  v
[inline]
 

set datetime value

void DbTable::set const string  n,
string  v
[inline]
 

set string(char*) value

void DbTable::set const string  n,
float  v
[inline]
 

set float value

void DbTable::set const string  n,
int  v
[inline]
 

set int value

void DbTable::set const string  n,
bool  v
[inline]
 

set bool value

void DbTable::set_request const string  n  )  [inline]
 

set request field

void DbTable::set_update const string  n  )  [inline]
 

set update field

void DbTable::setDescription string  d  )  [inline]
 

set table description

void DbTable::setName string  d  )  [inline]
 

set table name

void DbTable::setNamemask string  d  )  [inline]
 

set table namemask

int DbTable::size  )  [inline]
 

size


The documentation for this class was generated from the following file:
Generated on Thu Jul 21 23:09:46 2005 for tacppd.kdevelop by doxygen 1.3.5