#include <DTTPGLutFile.h>
Public Member Functions | |
bool | bad () |
return status of file stream More... | |
void | close () |
close file More... | |
DTTPGLutFile (const std::string name="") | |
constructor More... | |
DTTPGLutFile (const DTTPGLutFile &) | |
copy constructor More... | |
std::string | getName () const |
return filename More... | |
bool | good () |
return status of file stream More... | |
void | ignoreLines (int n) |
read and ignore n lines from file More... | |
int | open () |
open file More... | |
DTTPGLutFile & | operator= (const DTTPGLutFile &) |
assignment operator More... | |
int | readHex () |
read one hex from file More... | |
int | readInteger () |
read one integer from file More... | |
std::string | readString () |
read one string from file More... | |
virtual | ~DTTPGLutFile () |
destructor More... | |
Private Attributes | |
std::string | m_file |
std::ifstream | m_fin |
Auxiliary class to handle Look-up table files
Definition at line 35 of file DTTPGLutFile.h.
DTTPGLutFile::DTTPGLutFile | ( | const std::string | name = "" | ) |
constructor
DTTPGLutFile::DTTPGLutFile | ( | const DTTPGLutFile & | in | ) |
|
virtual |
|
inline |
|
inline |
close file
Definition at line 62 of file DTTPGLutFile.h.
References ignoreLines(), m_fin, dqmiodumpmetadata::n, readHex(), readInteger(), readString(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), Vispa.Gui.FindDialog.FindDialog::keyPressEvent(), and DTTracoLUTs::load().
|
inline |
return filename
Definition at line 50 of file DTTPGLutFile.h.
References m_file, and open().
Referenced by plotting.Plot::draw().
|
inline |
void DTTPGLutFile::ignoreLines | ( | int | n | ) |
read and ignore n lines from file
Definition at line 71 of file DTTPGLutFile.cc.
References mps_fire::i, m_fin, and dqmiodumpmetadata::n.
Referenced by close().
int DTTPGLutFile::open | ( | ) |
open file
Definition at line 60 of file DTTPGLutFile.cc.
References gather_cfg::cout, contentValuesCheck::file_name, recoMuon::in, m_file, and m_fin.
Referenced by getName(), and DTTracoLUTs::load().
DTTPGLutFile & DTTPGLutFile::operator= | ( | const DTTPGLutFile & | lut | ) |
int DTTPGLutFile::readHex | ( | ) |
read one hex from file
Definition at line 83 of file DTTPGLutFile.cc.
References m_fin, and createJobs::tmp.
Referenced by close(), and DTTracoLUTs::load().
int DTTPGLutFile::readInteger | ( | ) |
read one integer from file
Definition at line 77 of file DTTPGLutFile.cc.
References m_fin, and createJobs::tmp.
Referenced by close().
string DTTPGLutFile::readString | ( | ) |
read one string from file
Definition at line 89 of file DTTPGLutFile.cc.
References m_fin, and createJobs::tmp.
Referenced by close().
|
private |
Definition at line 78 of file DTTPGLutFile.h.
Referenced by getName(), open(), and operator=().
|
private |
Definition at line 77 of file DTTPGLutFile.h.
Referenced by bad(), close(), good(), ignoreLines(), open(), readHex(), readInteger(), and readString().