e3RunDbConn class. More...
#include <e3RunDbConn.h>
Public Member Functions | |
| e3RunDbConn () | |
| Default constructor. | |
| e3RunDbConn (const string, const string, const string, const string) | |
| Constructor. | |
| ~e3RunDbConn () | |
| Default destructor. | |
| void | Init () |
| Init mysql structure and open a db connection according to the db parameters. | |
| void | CloseConn () |
| Close db connection. | |
| int | GetTelescopeList (vector< string > &, const string) |
| Get telescope list. | |
| int | GetRunList (vector< string > &, const string, const string, const string, const string, unsigned int) |
| Get run list. | |
| int | GetDaqConf (vector< string > &, const string, const string, const string) |
| Get daq configuration. | |
| int | GetDaqConfList (vector< string > &, const string, const string, const string, const string) |
| Get daq configurations list. | |
| void | SetOvertime (unsigned int overtime) |
| void | SetVerbosity (unsigned int vLevel) |
| Set overtime for timewindow search (in hours). | |
e3RunDbConn class.
EEE rundb connector, a C++ wrapper for the MySQL C API library.
| e3RunDbConn::e3RunDbConn | ( | ) | [inline] |
Default constructor.
Description.
| e3RunDbConn::e3RunDbConn | ( | const string | hostName, | |
| const string | dbUser, | |||
| const string | dbPwd, | |||
| const string | dbName | |||
| ) |
Constructor.
| [in] | hostName | |
| [in] | dbUser | |
| [in] | dbPwd | |
| [in] | dbName |
| e3RunDbConn::~e3RunDbConn | ( | ) | [inline] |
Default destructor.
A more elaborate description of the destructor.
| void e3RunDbConn::CloseConn | ( | ) |
Close db connection.
Correctly close the mysql connection and free MYSQL structure.
| int e3RunDbConn::GetDaqConf | ( | vector< string > & | parValueList, | |
| const string | stationID, | |||
| const string | dateTimeStr, | |||
| const string | colNameList | |||
| ) |
Get daq configuration.
Get the daq parameter of a specific telescope for a specific date-time.
| int e3RunDbConn::GetDaqConfList | ( | vector< string > & | parValueList, | |
| const string | stationID, | |||
| const string | tWinLowStr, | |||
| const string | tWinUpStr, | |||
| const string | colNameList | |||
| ) |
Get daq configurations list.
Get the list of daq configurations of a specific telescope in a specified time window.
Current daq_configurations table in runDB:
+-----------------+---------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------------+---------------------+------+-----+---------+----------------+ | id | int(11) unsigned | NO | PRI | NULL | auto_increment | | gps_latitude | float | YES | | NULL | | | gps_longitude | float | YES | | NULL | | | gps_altitude | float | YES | | NULL | | | mrpc12_distance | float | YES | | NULL | | | mrpc23_distance | float | YES | | NULL | | | magnorth_angle | float | YES | | NULL | | | geonorth_angle | float | YES | | NULL | | | valid_from | datetime | YES | | NULL | | | valid_until | datetime | YES | | NULL | | | telescope_id | tinyint(3) unsigned | NO | | NULL | | +-----------------+---------------------+------+-----+---------+----------------+
| int e3RunDbConn::GetRunList | ( | vector< string > & | fileNameList, | |
| const string | stationID, | |||
| const string | tWinLowStr, | |||
| const string | tWinUpStr, | |||
| const string | whereClausesStr, | |||
| unsigned int | outFormat | |||
| ) |
Get run list.
Get run list in a spiecified time window.
| int e3RunDbConn::GetTelescopeList | ( | vector< string > & | telIDList, | |
| const string | whereClausesStr | |||
| ) |
Get telescope list.
Get telescope list in a spiecified time window.
| void e3RunDbConn::Init | ( | ) |
Init mysql structure and open a db connection according to the db parameters.
Correctly initialize the mysql connection.
1.6.1