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

tacpp::CoreDb Class Reference

database manager, use md5 for crypt/encrypt passwords field More...

#include <CoreDb.h>

Inheritance diagram for tacpp::CoreDb:

tacpp::Core_data List of all members.

Public Member Functions

 CoreDb (const string, const string)
 ~CoreDb ()
db_user get (const string)
string direct_function_query (const char *)
string get_table_name (const int)
string get_table_mask (const int)
string get_table_descr (const int)
string get_field_name (const int, const int)
string get_field_descr (const int, const int)
string get_field_defv (const int, const int)
int get_field_type (const int, const int)
int get_field_num (const int)
void add (const char *, unsigned int, const char *)
void del (const char *, unsigned int, const char *)
string load (const char *, unsigned int, const char *)
string getmodulename (const char *, unsigned int, const char *)
void modify_module (const char *, unsigned int, const char *, const char *)
void modify2 (const char *, unsigned int, const char *, const char *)
void modify4 (const char *, unsigned int, const char *, const char *)
void modify5 (const char *, unsigned int, const char *, const char *)
void modify_shutdown (const char *, unsigned int, const char *, bool)
string buildcfstr (int)
string applycf (char *const *mask, const string cmdname, const list< string >paramList, Command *cmd=NULL) throw (CmdErr)
string create_all ()
string del_data (string, list< string >, list< string >)
string show_data (string, list< string >, list< string >)
list< string > sshow_data (string, list< string >, list< string >)
string add_data (string, list< string >, list< string >)
string modify_data (string, list< string >, list< string >, list< string >, list< string >)
void add_log (log_user *)
int open_nf ()
void close_nf (int)
void add_nf (int, Bit32, Bit32, Bit32, time_t, time_t, unsigned long, unsigned long, int)

Detailed Description

database manager, use md5 for crypt/encrypt passwords field

Version:
1
Author:
rv


Constructor & Destructor Documentation

CoreDb::CoreDb const  string,
const  string
 

init data

CoreDb::~CoreDb  ) 
 

destroy data


Member Function Documentation

void CoreDb::add const char *  ,
unsigned  int,
const char * 
 

add database to list

string CoreDb::add_data string  ,
list< string >  ,
list< string > 
 

add data to table

void CoreDb::add_log log_user  ) 
 

write log information to all databases log table

void CoreDb::add_nf int  ,
Bit32  ,
Bit32  ,
Bit32  ,
time_t  ,
time_t  ,
unsigned  long,
unsigned  long,
int 
 

add nf data

string CoreDb::applycf char *const *  mask,
const string  cmdname,
const list< string >  paramList,
Command cmd = NULL
throw (CmdErr) [virtual]
 

apply config

Implements tacpp::Core_data.

string CoreDb::buildcfstr int   )  [virtual]
 

build configuration

Implements tacpp::Core_data.

void CoreDb::close_nf int   ) 
 

close process nf packet

string CoreDb::create_all  ) 
 

create datatables in all databases

void CoreDb::del const char *  ,
unsigned  int,
const char * 
 

delete database from list

string CoreDb::del_data string  ,
list< string >  ,
list< string > 
 

delete data from table

string CoreDb::direct_function_query const char *   ) 
 

direct query to server

db_user CoreDb::get const  string  ) 
 

get information from database

Returns:
user data

string CoreDb::get_field_defv const  int,
const  int
 

get field def value

string CoreDb::get_field_descr const  int,
const  int
 

get field descr

string CoreDb::get_field_name const  int,
const  int
 

get field name

int CoreDb::get_field_num const  int  ) 
 

get field num

int CoreDb::get_field_type const  int,
const  int
 

get field type

string CoreDb::get_table_descr const  int  ) 
 

get db table description

string CoreDb::get_table_mask const  int  ) 
 

get database table mask

string CoreDb::get_table_name const  int  ) 
 

get database table name

string CoreDb::getmodulename const char *  ,
unsigned  int,
const char * 
 

get module name

string CoreDb::load const char *  ,
unsigned  int,
const char * 
 

reload module

void CoreDb::modify2 const char *  ,
unsigned  int,
const char *  ,
const char * 
 

set/modify cryptokey

void CoreDb::modify4 const char *  ,
unsigned  int,
const char *  ,
const char * 
 

set/modify username

void CoreDb::modify5 const char *  ,
unsigned  int,
const char *  ,
const char * 
 

set/modify password

string CoreDb::modify_data string  ,
list< string >  ,
list< string >  ,
list< string >  ,
list< string > 
 

modify data in table

void CoreDb::modify_module const char *  ,
unsigned  int,
const char *  ,
const char * 
 

set/modify module

void CoreDb::modify_shutdown const char *  ,
unsigned  int,
const char *  ,
bool 
 

set/mod shutdown flag

int CoreDb::open_nf  ) 
 

open process nf packet

string CoreDb::show_data string  ,
list< string >  ,
list< string > 
 

show data in table

list< string > CoreDb::sshow_data string  ,
list< string >  ,
list< string > 
 

show stripped data in table


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