#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 64 of file DTTPGLutFile.h.
References m_fin.
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), 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 52 of file DTTPGLutFile.h.
References m_file.
Referenced by plotting.Plot::draw().
|
inline |
void DTTPGLutFile::ignoreLines | ( | int | n | ) |
read and ignore n lines from file
Definition at line 79 of file DTTPGLutFile.cc.
References i, m_fin, and gen::n.
int DTTPGLutFile::open | ( | ) |
open file
Definition at line 64 of file DTTPGLutFile.cc.
References gather_cfg::cout, cmsHarvester::file_name, recoMuon::in, m_file, and m_fin.
Referenced by DTTracoLUTs::load().
DTTPGLutFile & DTTPGLutFile::operator= | ( | const DTTPGLutFile & | lut | ) |
int DTTPGLutFile::readHex | ( | ) |
read one hex from file
Definition at line 96 of file DTTPGLutFile.cc.
Referenced by DTTracoLUTs::load().
int DTTPGLutFile::readInteger | ( | ) |
string DTTPGLutFile::readString | ( | ) |
|
private |
Definition at line 81 of file DTTPGLutFile.h.
Referenced by getName(), open(), and operator=().
|
private |
Definition at line 80 of file DTTPGLutFile.h.
Referenced by bad(), close(), good(), ignoreLines(), open(), readHex(), readInteger(), and readString().