#include <DTTPGLutFile.h>
Public Member Functions | |
bool | bad () |
return status of file stream | |
void | close () |
close file | |
DTTPGLutFile (const std::string name="") | |
constructor | |
DTTPGLutFile (const DTTPGLutFile &) | |
copy constructor | |
std::string | getName () const |
return filename | |
bool | good () |
return status of file stream | |
void | ignoreLines (int n) |
read and ignore n lines from file | |
int | open () |
open file | |
DTTPGLutFile & | operator= (const DTTPGLutFile &) |
assignment operator | |
int | readHex () |
read one hex from file | |
int | readInteger () |
read one integer from file | |
std::string | readString () |
read one string from file | |
virtual | ~DTTPGLutFile () |
destructor | |
Private Attributes | |
std::string | m_file |
std::ifstream | m_fin |
Auxiliary class to handle Look-up table files
Definition at line 37 of file DTTPGLutFile.h.
DTTPGLutFile::DTTPGLutFile | ( | const std::string | name = "" | ) |
constructor
DTTPGLutFile::DTTPGLutFile | ( | const DTTPGLutFile & | in | ) |
DTTPGLutFile::~DTTPGLutFile | ( | ) | [virtual] |
bool DTTPGLutFile::bad | ( | ) | [inline] |
return status of file stream
Definition at line 63 of file DTTPGLutFile.h.
References m_fin.
{ return m_fin.bad(); }
void DTTPGLutFile::close | ( | void | ) | [inline] |
close file
Definition at line 66 of file DTTPGLutFile.h.
References m_fin.
Referenced by DTTracoLUTs::load().
{ m_fin.close(); }
std::string DTTPGLutFile::getName | ( | void | ) | const [inline] |
bool DTTPGLutFile::good | ( | ) | [inline] |
return status of file stream
Definition at line 60 of file DTTPGLutFile.h.
References m_fin.
{ return m_fin.good(); }
void DTTPGLutFile::ignoreLines | ( | int | n | ) |
int DTTPGLutFile::open | ( | ) |
open file
Definition at line 66 of file DTTPGLutFile.cc.
References gather_cfg::cout, cmsPerfSuiteHarvest::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 98 of file DTTPGLutFile.cc.
Referenced by DTTracoLUTs::load().
int DTTPGLutFile::readInteger | ( | ) |
string DTTPGLutFile::readString | ( | ) |
std::string DTTPGLutFile::m_file [private] |
Definition at line 83 of file DTTPGLutFile.h.
Referenced by getName(), open(), and operator=().
std::ifstream DTTPGLutFile::m_fin [private] |
Definition at line 82 of file DTTPGLutFile.h.
Referenced by bad(), close(), good(), ignoreLines(), open(), readHex(), readInteger(), and readString().