#include "AEMDBInterface.h"#include <vector>#include <sstream>#include <iostream>#include <cstring>#include <cstdlib>#include <ctime>#include <string>#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>Go to the source code of this file.
Defines | |
| #define | CheckDBConn() |
| #define CheckDBConn | ( | ) |
Value:
if (!fDBConn || (PQstatus(fDBConn) != CONNECTION_OK)){ \ std::ostringstream __str; \ __str << __FILE__ << ":" << __LINE__ \ << " -- No DB connection: " \ << PQerrorMessage(fDBConn); \ throw(__str.str().c_str()); \ }
Definition at line 66 of file AEMDBInterface.cxx.
Referenced by AEMDBInterface::GetnEvent(), AEMDBInterface::GetnSpill(), AEMDBInterface::GetnSubrun(), AEMDBInterface::GetRunEntry(), AEMDBInterface::GetRunNumber(), and AEMDBInterface::Open().
1.4.7