QwAnalysis
QwDatabase.cc File Reference

A class for handling connections to the Qweak database. More...

#include "QwDatabase.h"
+ Include dependency graph for QwDatabase.cc:

Go to the source code of this file.

Functions

 sql_create_6 (db_schema, 1, 2, mysqlpp::sql_int_unsigned, db_schema_id, mysqlpp::sql_char, major_release_number, mysqlpp::sql_char, minor_release_number, mysqlpp::sql_char, point_release_number, mysqlpp::sql_timestamp, time, mysqlpp::Null< mysqlpp::sql_text >, script_name) QwDatabase
 

Detailed Description

A class for handling connections to the Qweak database.

Author
Damon Spayde
Date
2010-01-07

Definition in file QwDatabase.cc.

Function Documentation

sql_create_6 ( db_schema  ,
,
,
mysqlpp::sql_int_unsigned  ,
db_schema_id  ,
mysqlpp::sql_char  ,
major_release_number  ,
mysqlpp::sql_char  ,
minor_release_number  ,
mysqlpp::sql_char  ,
point_release_number  ,
mysqlpp::sql_timestamp  ,
time  ,
mysqlpp::Null< mysqlpp::sql_text >  ,
script_name   
)

The simple constructor initializes member fields. This class is not used to establish the database connection. It sets up a mysqlpp::Connection() object that has exception throwing disabled.

Definition at line 16 of file QwDatabase.cc.

References QwLog::endl(), and QwDebug.

31  : Connection(), kValidVersionMajor(major), kValidVersionMinor(minor), kValidVersionPoint(point)
32 {
33  QwDebug << "Greetings from QwDatabase simple constructor." << QwLog::endl;
34 
35  // Initialize member fields
36  fDatabase=fDBServer=fDBUsername=fDBPassword="";
37  fVersionMajor=fVersionMinor=fVersionPoint="";
38 
39  fAccessLevel = kQwDatabaseOff;
40 
41  fDBPortNumber = 0;
42  fValidConnection = false;
43 
44 }
#define QwDebug
Predefined log drain for debugging output.
Definition: QwLog.h:60
static std::ostream & endl(std::ostream &)
End of the line.
Definition: QwLog.cc:299

+ Here is the call graph for this function: