BOSS 7.0.8
BESIII Offline Software System
|
#include <db_mysql.h>
Public Member Functions | |
db_mysql () | |
db_mysql (string host, string user, string passwd, string db="") | |
~db_mysql () | |
void | Init (string host, string user, string passwd, string db="") |
void | SetQuery (string query) |
bool | Connect (void) |
bool | SelectDB (string db) |
bool | Execute (string query="") |
unsigned long | Num_Rows (void) |
bool | GetRow (my_ulonglong row=NEXT_ROW) |
string | GetField (unsigned int n) |
string | GetField_name (unsigned int n) |
void | Free_Result (void) |
void | Close (void) |
Public Attributes | |
unsigned int | Field_num |
Definition at line 9 of file db_mysql.h.
db_mysql::db_mysql | ( | ) |
Definition at line 3 of file db_mysql.cpp.
db_mysql::db_mysql | ( | string | host, |
string | user, | ||
string | passwd, | ||
string | db = "" |
||
) |
Definition at line 14 of file db_mysql.cpp.
db_mysql::~db_mysql | ( | ) |
Definition at line 233 of file db_mysql.cpp.
void db_mysql::Close | ( | void | ) |
Definition at line 223 of file db_mysql.cpp.
Referenced by main(), WriteLumDB(), and ~db_mysql().
bool db_mysql::Connect | ( | void | ) |
Definition at line 41 of file db_mysql.cpp.
Referenced by main(), and WriteLumDB().
bool db_mysql::Execute | ( | string | query = "" | ) |
Definition at line 96 of file db_mysql.cpp.
Referenced by ReadFromDB(), ReWriteBeamParToDb(), WriteBeamParToDb(), WriteLumDB(), and WriteLumTauDB().
void db_mysql::Free_Result | ( | void | ) |
Definition at line 213 of file db_mysql.cpp.
Referenced by Close(), Execute(), and ~db_mysql().
string db_mysql::GetField | ( | unsigned int | n | ) |
Definition at line 160 of file db_mysql.cpp.
Referenced by ReadFromDB(), ReWriteBeamParToDb(), and WriteLumDB().
string db_mysql::GetField_name | ( | unsigned int | n | ) |
Definition at line 183 of file db_mysql.cpp.
Definition at line 133 of file db_mysql.cpp.
Referenced by ReadFromDB(), ReWriteBeamParToDb(), and WriteLumDB().
void db_mysql::Init | ( | string | host, |
string | user, | ||
string | passwd, | ||
string | db = "" |
||
) |
Definition at line 25 of file db_mysql.cpp.
Referenced by db_mysql(), main(), and WriteLumDB().
unsigned long db_mysql::Num_Rows | ( | void | ) |
Definition at line 203 of file db_mysql.cpp.
bool db_mysql::SelectDB | ( | string | db | ) |
Definition at line 79 of file db_mysql.cpp.
Referenced by main(), and WriteLumDB().
void db_mysql::SetQuery | ( | string | query | ) |
Definition at line 37 of file db_mysql.cpp.
unsigned int db_mysql::Field_num |
Definition at line 36 of file db_mysql.h.
Referenced by Execute().