BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Result of the file import. Some of the contained data is only relevant for showing the results in the result table. The usage of vectors which cover also invalid or skipped lines has its reason also in this result showing (to improve presentation performance).
Definition at line 108 of file QREDataLoader.h.
Public Member Functions | |
void | addError (int line, ErrorDefinition::Type type, double data) |
void | addError (int line, ErrorDefinition::Type type, int data=0) |
void | clear () |
void | clearCalculatedValues () |
QString | errorText (int line) const |
Public Attributes | |
QMap< int, ErrorDefinition > | calculationErrors |
calculation error per line; line is 0-based More... | |
QString | error |
error unrelated to lines More... | |
QVector< double > | eValues |
index is 0-based line number More... | |
ImportSettings | importSettings |
Settings used for the import. More... | |
QVector< QPair< bool, QString > > | lines |
bool describes whether line is skipped index is 0-based line number More... | |
int | maxColumnCount |
max found columns in raw data More... | |
QVector< double > | qValues |
index is 0-based line number More... | |
QVector< QVector< double > > | rawValues |
index is 0-based line number More... | |
QVector< double > | rValues |
index is 0-based line number More... | |
int | validCalculatedLines |
number of valid resulting data rows More... | |
void QREDataLoader::ImportResult::addError | ( | int | line, |
ErrorDefinition::Type | type, | ||
double | data | ||
) |
Definition at line 645 of file QREDataLoader.cpp.
void QREDataLoader::ImportResult::addError | ( | int | line, |
ErrorDefinition::Type | type, | ||
int | data = 0 |
||
) |
Definition at line 640 of file QREDataLoader.cpp.
Referenced by QREDataLoader::calculateFromParseResult().
void QREDataLoader::ImportResult::clear | ( | ) |
Definition at line 617 of file QREDataLoader.cpp.
References calculationErrors, QREDataLoader::ImportSettings::columnDefinitions, error, eValues, importSettings, lines, maxColumnCount, qValues, rawValues, rValues, and validCalculatedLines.
Referenced by QREDataLoader::deserialize(), and QREDataLoader::parseFileContent().
void QREDataLoader::ImportResult::clearCalculatedValues | ( | ) |
Definition at line 631 of file QREDataLoader.cpp.
Referenced by QREDataLoader::calculateFromParseResult().
QString QREDataLoader::ImportResult::errorText | ( | int | line | ) | const |
Definition at line 650 of file QREDataLoader.cpp.
References QREDataLoader::ErrorDefinition::none.
Referenced by QREDataLoaderResultModel::cellText().
QMap<int, ErrorDefinition> QREDataLoader::ImportResult::calculationErrors |
calculation error per line; line is 0-based
Definition at line 124 of file QREDataLoader.h.
Referenced by clear(), QREDataLoaderResultModel::columnCount(), QREDataLoader::datafieldFromParsingResult(), QREDataLoader::deserialize(), QREDataLoader::numErrors(), QREDataLoader::numLineRelatedErrors(), QREDataLoaderResultModel::rowHasError(), and QREDataLoader::serialize().
QString QREDataLoader::ImportResult::error |
error unrelated to lines
Definition at line 125 of file QREDataLoader.h.
Referenced by clear(), QREDataLoader::deserialize(), QREDataLoader::lineUnrelatedErrors(), QREDataLoader::numErrors(), QREDataLoader::processContents(), and QREDataLoader::serialize().
QVector<double> QREDataLoader::ImportResult::eValues |
index is 0-based line number
Definition at line 120 of file QREDataLoader.h.
Referenced by QREDataLoader::calculateFromParseResult(), QREDataLoaderResultModel::cellText(), clear(), QREDataLoader::deserialize(), and QREDataLoader::serialize().
ImportSettings QREDataLoader::ImportResult::importSettings |
Settings used for the import.
Definition at line 126 of file QREDataLoader.h.
Referenced by clear(), QREDataLoaderResultModel::columnCount(), QREDataLoader::deserialize(), QREDataLoader::processContents(), and QREDataLoader::serialize().
QVector<QPair<bool, QString> > QREDataLoader::ImportResult::lines |
bool describes whether line is skipped index is 0-based line number
Definition at line 115 of file QREDataLoader.h.
Referenced by QREDataLoader::calculateFromParseResult(), QREDataLoaderResultModel::cellText(), clear(), QREDataLoader::datafieldFromParsingResult(), QREDataLoader::deserialize(), QREDataLoader::parseFileContent(), QREDataLoaderResultModel::rowCount(), QREDataLoaderResultModel::rowIsSkipped(), and QREDataLoader::serialize().
int QREDataLoader::ImportResult::maxColumnCount |
max found columns in raw data
Definition at line 122 of file QREDataLoader.h.
Referenced by clear(), QREDataLoaderResultModel::columnCount(), QREDataLoader::deserialize(), QREDataLoader::parseFileContent(), and QREDataLoader::serialize().
QVector<double> QREDataLoader::ImportResult::qValues |
index is 0-based line number
Definition at line 118 of file QREDataLoader.h.
Referenced by QREDataLoader::calculateFromParseResult(), QREDataLoaderResultModel::cellText(), clear(), QREDataLoader::datafieldFromParsingResult(), QREDataLoader::deserialize(), and QREDataLoader::serialize().
QVector<QVector<double> > QREDataLoader::ImportResult::rawValues |
index is 0-based line number
Definition at line 117 of file QREDataLoader.h.
Referenced by QREDataLoader::calculateFromParseResult(), QREDataLoaderResultModel::cellText(), clear(), QREDataLoader::deserialize(), QREDataLoader::parseFileContent(), and QREDataLoader::serialize().
QVector<double> QREDataLoader::ImportResult::rValues |
index is 0-based line number
Definition at line 119 of file QREDataLoader.h.
Referenced by QREDataLoader::calculateFromParseResult(), QREDataLoaderResultModel::cellText(), clear(), QREDataLoader::datafieldFromParsingResult(), QREDataLoader::deserialize(), and QREDataLoader::serialize().
int QREDataLoader::ImportResult::validCalculatedLines |
number of valid resulting data rows
Definition at line 121 of file QREDataLoader.h.
Referenced by QREDataLoader::calculateFromParseResult(), clear(), QREDataLoader::deserialize(), QREDataLoader::processContents(), and QREDataLoader::serialize().