#include <DbFileHandler.h>
Public Member Functions | |
void | configure (const unsigned int runNumber, const DiskWritingParams &) |
DbFileHandler () | |
const DiskWritingParams & | getDiskWritingParams () const |
void | write (const std::string &) |
void | writeOld (const utils::TimePoint_t &, const std::string &) |
~DbFileHandler () | |
Private Member Functions | |
void | addReportHeader (std::ostream &, const utils::TimePoint_t &) const |
DbFileHandler (DbFileHandler const &) | |
void | openFile (std::ofstream &, const utils::TimePoint_t &) const |
DbFileHandler & | operator= (DbFileHandler const &) |
Private Attributes | |
DiskWritingParams | dwParams_ |
unsigned int | runNumber_ |
Handle the file used to pass information into SM database
Definition at line 26 of file DbFileHandler.h.
stor::DbFileHandler::DbFileHandler | ( | ) |
Definition at line 12 of file DbFileHandler.cc.
|
inline |
Definition at line 32 of file DbFileHandler.h.
|
private |
|
private |
Definition at line 77 of file DbFileHandler.cc.
References sistrip::runNumber_, and stor::utils::secondsSinceEpoch().
Referenced by write().
void stor::DbFileHandler::configure | ( | const unsigned int | runNumber, |
const DiskWritingParams & | params | ||
) |
Configure the db file writer
Definition at line 40 of file DbFileHandler.cc.
References dwParams_, convertSQLiteXML::runNumber, runNumber_, and write().
|
inline |
Return the DiskWritingParams used to configure the DbFileHandler
Definition at line 53 of file DbFileHandler.h.
References dwParams_.
|
private |
Definition at line 50 of file DbFileHandler.cc.
References stor::utils::checkDirectory(), stor::utils::dateStamp(), lumiQueryAPI::msg, and dbtoconf::out.
Referenced by Vispa.Main.Application.Application::_readCommandLineAttributes(), Vispa.Main.Application.Application::doubleClickOnFile(), Vispa.Main.Application.Application::openFileDialog(), Vispa.Main.Application.Application::openRecentFileSlot(), write(), and writeOld().
|
private |
void stor::DbFileHandler::write | ( | const std::string & | str | ) |
Write the string into the db file and prefix it with the report header. Close the file after each write.
Definition at line 27 of file DbFileHandler.cc.
References addReportHeader(), stor::utils::getCurrentTime(), openFile(), download_sqlite_cfg::outputFile, and cond::timestamp.
Referenced by configure(), and pkg.AbstractPkg::generate().
void stor::DbFileHandler::writeOld | ( | const utils::TimePoint_t & | timestamp, |
const std::string & | str | ||
) |
Write the string into the db file. Close the file after each write.
Definition at line 17 of file DbFileHandler.cc.
References openFile(), and download_sqlite_cfg::outputFile.
|
private |
Definition at line 67 of file DbFileHandler.h.
Referenced by configure(), and getDiskWritingParams().
|
private |
Definition at line 68 of file DbFileHandler.h.
Referenced by configure().