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

tacpp::DbModule Class Reference

DbModule functions. More...

#include <TacDb.h>

Inheritance diagram for tacpp::DbModule:

tacpp::TacDb List of all members.

Public Member Functions

void setLocation (ipaddr)
ipaddr getLocation ()
void setDbname (string)
string getDbname ()
void setDbport (unsigned int)
unsigned int getDbport ()
void setCryptokey (string)
string getCryptokey ()
void setUsername (const string)
string getUsername ()
void setPassword (const string)
string getPassword ()
void setModule (const string)
string getModule ()
void setShutdown (bool)
bool getShutdown ()
void setdbid (const char *, const char *, int)
string getdbid ()
string encrypt (char *, char *)
string decrypt (char *, char *)
void create_md5_hash (unsigned char *, unsigned char *)
void md5_xor (unsigned char *, unsigned char *)
 DbModule (const char *, const char *, const char *, int, const char *, const char *, const char *)
bool db_open (int *)
bool db_close (int)
bool db_query (int, DbTable *)
string db_function (int, char *)
bool db_get (int, DbTable *, int)
bool db_create (int, DbTable *, char *)
bool db_create_idx (int, DbTable *, char *)
bool db_add (int, DbTable *)
bool db_update (int, DbTable *)
bool db_del (int, DbTable *)
 ~DbModule ()

Public Attributes

void(* dl_init )()
void(* dl_destroy )()
int(* dl_open )(char *, int, char *, char *, char *, char *)
bool(* dl_close )(int)
bool(* dl_query )(int, DbTable *, char *)
char *(* dl_function )(int, char *, char *)
bool(* dl_get )(int, DbTable *, int, char *)
bool(* dl_create )(int, DbTable *, char *)
bool(* dl_create_idx )(int, DbTable *, char *)
bool(* dl_add )(int, DbTable *, char *)
bool(* dl_update )(int, DbTable *, char *)
bool(* dl_del )(int, DbTable *, char *)

Detailed Description

DbModule functions.


Constructor & Destructor Documentation

DbModule::DbModule (  const char *  ,
const char *  ,
const char *  ,
int  ,
const char *  ,
const char *  ,
const char * 
) 
 

we call to Db constructor in body

DbModule::~DbModule (   ) 
 

free


Member Function Documentation

void DbModule::create_md5_hash (  unsigned char *  ,
unsigned char * 
) 
 

create hash

bool DbModule::db_add (  int  ,
DbTable * 
) 
 

insert to table

bool DbModule::db_close (  int   ) 
 

disconnect from

bool DbModule::db_create (  int  ,
DbTable *  ,
char * 
) 
 

create table

bool DbModule::db_create_idx (  int  ,
DbTable *  ,
char * 
) 
 

create table index

bool DbModule::db_del (  int  ,
DbTable * 
) 
 

delete from table

string DbModule::db_function (  int  ,
char * 
) 
 

send query to function

bool DbModule::db_get (  int  ,
DbTable *  ,
int 
) 
 

get data

bool DbModule::db_open (  int *   ) 
 

connect to

bool DbModule::db_query (  int  ,
DbTable * 
) 
 

send query

bool DbModule::db_update (  int  ,
DbTable * 
) 
 

update

string DbModule::decrypt (  char *  ,
char * 
) 
 

data decryption

string DbModule::encrypt (  char *  ,
char * 
) 
 

data encryption

string DbModule::getCryptokey (   ) 
 

get c key

string DbModule::getdbid (   ) 
 

get db engine id string

string DbModule::getDbname (   ) 
 

get db name

unsigned int DbModule::getDbport (   ) 
 

get db port

ipaddr DbModule::getLocation (   ) 
 

get locat

string DbModule::getModule (   ) 
 

get module

string DbModule::getPassword (   ) 
 

get pwd

bool DbModule::getShutdown (   ) 
 

get shutd

string DbModule::getUsername (   ) 
 

get usnam

void DbModule::md5_xor (  unsigned char *  ,
unsigned char * 
) 
 

do xor

void DbModule::setCryptokey (  string   ) 
 

cryptokey_

void DbModule::setdbid (  const char *  ,
const char *  ,
int 
) 
 

set database engine id

void DbModule::setDbname (  string   ) 
 

dbname_

void DbModule::setDbport (  unsigned  int  ) 
 

dbport_

void DbModule::setLocation (  ipaddr   ) 
 

location_

void DbModule::setModule (  const  string  ) 
 

module_

void DbModule::setPassword (  const  string  ) 
 

password_

void DbModule::setShutdown (  bool   ) 
 

shutdown_

void DbModule::setUsername (  const  string  ) 
 

username_


Member Data Documentation

bool(* tacpp::DbModule::dl_add)(int,DbTable*,char*)
 

insert

bool(* tacpp::DbModule::dl_close)(int)
 

disconnect from server

bool(* tacpp::DbModule::dl_create)(int,DbTable*,char*)
 

create table

bool(* tacpp::DbModule::dl_create_idx)(int,DbTable*,char*)
 

create table index

bool(* tacpp::DbModule::dl_del)(int,DbTable*,char*)
 

delete

void(* tacpp::DbModule::dl_destroy)()
 

destroy database driver

char*(* tacpp::DbModule::dl_function)(int,char*,char*)
 

function query

bool(* tacpp::DbModule::dl_get)(int,DbTable*,int,char*)
 

get data

void(* tacpp::DbModule::dl_init)()
 

init database driver

int(* tacpp::DbModule::dl_open)(char*,int,char*,char*,char*,char*)
 

connect to server

bool(* tacpp::DbModule::dl_query)(int,DbTable*,char*)
 

send query

bool(* tacpp::DbModule::dl_update)(int,DbTable*,char*)
 

update


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