#include <ALIFileIn.h>
Public Member Functions | |
ALIFileIn () | |
void | close () |
ALIbool | eof () |
void | ErrorInLine () |
ALIint | getWordsInLine (std::vector< ALIstring > &wl) |
const ALIstring & | name () |
const ALIint | nline () |
~ALIFileIn () | |
Static Public Member Functions | |
static ALIFileIn & | getInstance (const ALIstring &name) |
static ALIFileIn & | getInstanceOpened (const ALIstring &name) |
Private Member Functions | |
ALIFileIn (const ALIstring &name) | |
void | openNewFile (const char *filename) |
Private Attributes | |
int | theCurrentFile |
std::vector< std::ifstream * > | theFiles |
std::vector< ALIint > | theLineNo |
ALIstring | theName |
Name of file. More... | |
std::vector< ALIstring > | theNames |
Static Private Attributes | |
static std::vector< ALIFileIn * > | theInstances |
Definition at line 20 of file ALIFileIn.h.
|
inline |
|
inline |
Definition at line 23 of file ALIFileIn.h.
|
inlineprivate |
Definition at line 26 of file ALIFileIn.h.
void ALIFileIn::close | ( | ) |
Definition at line 218 of file ALIFileIn.cc.
References theCurrentFile, and theFiles.
Referenced by eof(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), and Model::readSystemDescription().
ALIbool ALIFileIn::eof | ( | ) |
Definition at line 201 of file ALIFileIn.cc.
References close(), theCurrentFile, and theFiles.
Referenced by getWordsInLine(), DeviationsFromFileSensor2D::readFile(), Model::readMeasurementsFromFile(), and Model::readSystemDescription().
void ALIFileIn::ErrorInLine | ( | ) |
Definition at line 196 of file ALIFileIn.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, theCurrentFile, theLineNo, and theNames.
Referenced by MeasurementDiffEntry::buildOptONamesList(), OpticalObject::createComponentOptOs(), Entry::fill(), Entry::fillFromInputFileQuality(), Entry::fillFromInputFileSigma(), Entry::fillFromInputFileValue(), getWordsInLine(), OpticalObject::readCoordinates(), Model::readMeasurementsFromFile(), Model::readSystemDescription(), and GlobalOptionMgr::setGlobalOption().
Definition at line 22 of file ALIFileIn.cc.
References ALIFileIn(), corrVsCorr::filename, instance, and theInstances.
Referenced by MeasurementDiffEntry::buildOptONamesList(), CocoaDaqReaderText::CocoaDaqReaderText(), Measurement::construct(), OpticalObject::construct(), Entry::fill(), OptOSensor2D::fillExtraEntry(), Entry::fillFromInputFileQuality(), Entry::fillFromInputFileSigma(), Entry::fillFromInputFileValue(), FittedEntriesReader::FittedEntriesReader(), getInstanceOpened(), ErrorCorrelationMgr::readFromReportFile(), Model::readMeasurementsFromFile(), and Model::readSystemDescription().
Definition at line 60 of file ALIFileIn.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, beamvalidation::exit(), corrVsCorr::filename, getInstance(), and name().
Definition at line 74 of file ALIFileIn.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, eof(), ErrorInLine(), beamvalidation::exit(), cuy::ii, openNewFile(), theCurrentFile, theFiles, theLineNo, and groupFilesInBlocks::tt.
Referenced by Measurement::construct(), OpticalObject::createComponentOptOs(), OptOSensor2D::fillExtraEntry(), FittedEntriesReader::FittedEntriesReader(), OpticalObject::readCoordinates(), OpticalObject::readData(), OpticalObject::readExtraEntries(), DeviationsFromFileSensor2D::readFile(), FittedEntriesReader::readFittedEntriesFromFile(), Model::readMeasurementsFromFile(), and Model::readSystemDescription().
|
inline |
Definition at line 43 of file ALIFileIn.h.
References theName.
Referenced by config.CFG::__str__(), validation.Sample::digest(), getInstanceOpened(), VIDSelectorBase.VIDSelectorBase::initialize(), and DeviationsFromFileSensor2D::readFile().
|
inline |
Definition at line 41 of file ALIFileIn.h.
References theCurrentFile, and theLineNo.
Referenced by Model::readSystemDescription().
|
private |
Definition at line 38 of file ALIFileIn.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, beamvalidation::exit(), corrVsCorr::filename, groupFilesInBlocks::fin, theCurrentFile, theFiles, theLineNo, and theNames.
Referenced by getWordsInLine().
|
private |
Definition at line 56 of file ALIFileIn.h.
Referenced by close(), eof(), ErrorInLine(), getWordsInLine(), nline(), and openNewFile().
|
private |
Definition at line 52 of file ALIFileIn.h.
Referenced by close(), eof(), getWordsInLine(), and openNewFile().
|
staticprivate |
Definition at line 60 of file ALIFileIn.h.
Referenced by getInstance().
|
private |
Definition at line 54 of file ALIFileIn.h.
Referenced by ErrorInLine(), getWordsInLine(), nline(), and openNewFile().
|
private |
|
private |
Definition at line 55 of file ALIFileIn.h.
Referenced by ErrorInLine(), and openNewFile().