Logo Search packages:      
Sourcecode: verlihub version File versions

nConfig::cConfMySQL Class Reference

#include <cconfmysql.h>

Inheritance diagram for nConfig::cConfMySQL:

nConfig::cConfigBase nConfig::cConfigBaseBase cObj nConfig::tCache< IndexType > nConfig::tMySQLMemoryList< DataType, OwnerType > nDirectConnect::nTables::cBanList nDirectConnect::nTables::cKickList nDirectConnect::nTables::cPenaltyList nDirectConnect::nTables::cRegList nDirectConnect::nTables::cSetupList nConfig::tMySQLMemoryList< DATA_TYPE, PLUGIN_TYPE > nConfig::tMySQLMemoryList< nDirectConnect::nTables::cConnType, nDirectConnect::cServerDC > nConfig::tMySQLMemoryList< nDirectConnect::nTables::cDCClient, nDirectConnect::cServerDC > nConfig::tMySQLMemoryList< nDirectConnect::nTables::cTrigger, nDirectConnect::cServerDC >

List of all members.


Detailed Description

a mysql configuratin class
Author:
Daniel Muller

Definition at line 93 of file cconfmysql.h.


Public Types

typedef tItemHash::iterator tIHIt
typedef tcHashListMap
< cConfigItemBase *, unsigned > 
tItemHash
typedef unsigned tItemHashType
typedef vector< size_t > tItemVec
typedef tItemVec::iterator tIVIt

Public Member Functions

cConfigItemBaseAdd (const string &, cConfigItemBase *)
template<class T>
void AddCol (const char *colName, const char *colType, const char *colDefault, bool colNull, T &var)
void AddPrimaryKey (const char *)
void AllFields (ostream &, bool DoF=true, bool DoV=false, bool IsAff=false, string joint=string(", "))
void AllPKFields (ostream &, bool DoF=true, bool DoV=false, bool IsAff=false, string joint=string(", "))
iteratorbegin ()
void BindNick (int, const string &)
 cConfMySQL (cMySQL &mysql)
void CreateTable ()
db_iteratordb_begin ()
db_iteratordb_begin (cQuery &)
db_iteratordb_end ()
 DeclareAddMethods (double)
 DeclareAddMethods (char *)
 DeclareAddMethods (string)
 DeclareAddMethods (__int64)
 DeclareAddMethods (unsigned long)
 DeclareAddMethods (long)
 DeclareAddMethods (unsigned)
 DeclareAddMethods (int)
 DeclareAddMethods (char)
 DeclareAddMethods (bool)
void DeletePK ()
iteratorend ()
int EndQuery (cQuery &)
int EndQuery ()
virtual std::ostream & ErrLog ()
int ErrLog (int level)
virtual int Load (cQuery &)
virtual int Load ()
bool LoadPK ()
virtual std::ostream & Log ()
int Log (int level)
std::ostream & LogStream ()
cConfigItemBaseoperator[] (const string &)
cConfigItemBaseoperator[] (int)
virtual int Save ()
bool SavePK (bool dup=false)
void SelectFields (ostream &)
void SetBaseTo (void *new_base)
void SetClassName (const char *name)
int StartQuery (cQuery &)
int StartQuery ()
int StartQuery (string query)
virtual int StrLog (std::ostream &ostr, int level)
void UpdateFields (ostream &os)
bool UpdatePK (cQuery &)
bool UpdatePK ()
bool UpdatePKVar (cConfigItemBase *)
bool UpdatePKVar (const char *)
bool UpdatePKVar (const char *var_name, string &new_val)
void WherePKey (ostream &os)

Static Public Member Functions

static int GetCount ()
static void WriteStringConstant (ostream &os, const string &str)

Public Attributes

void * mBasePtr
iterator mBegin
const char * mClassName
iterator mEnd
tItemHash mhItems
cBasicItemCreator * mItemCreator
cMySQLmMySQL
cQuery mQuery
std::ostream * mToLog
tItemVec mvItems

Static Public Attributes

static const string mEmpty
static hHashStr< tItemHashType > msHasher
static int msLogLevel = 4

Protected Attributes

unsigned mCols
cMySQLTable mMySQLTable
tItemHash mPrimaryKey
int ok

Private Attributes

db_iterator mDBBegin
db_iterator mDBEnd

Classes

struct  db_iterator
struct  ufEqual
 UF to make equations and lists of values or fiel names. More...
struct  ufLoad

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index