BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
QREDataLoader.h File Reference

Description

Defines class QREDataLoader.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file QREDataLoader.h.

Include dependency graph for QREDataLoader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QREDataLoader::ColumnDefinition
 
struct  QREDataLoader::ErrorDefinition
 Contains a line related error (stored in the import result). Used for showing line related errors in the import data table. More...
 
struct  QREDataLoader::ImportResult
 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). More...
 
struct  QREDataLoader::ImportSettings
 Settings for importing the file. More...
 
class  QREDataLoader
 Loader for experimental reflectometry CSV files that contain three columns with Q,R,E, namely Q = wavenumber, R = reflectivity, E = error of R. More...
 

Functions

QDataStream & operator<< (QDataStream &stream, const QREDataLoader::ImportSettings &s)
 
QDataStream & operator>> (QDataStream &stream, QREDataLoader::ImportSettings &s)
 

Function Documentation

◆ operator<<()

QDataStream& operator<< ( QDataStream &  stream,
const QREDataLoader::ImportSettings s 
)

Definition at line 133 of file QREDataLoader.cpp.

573 {
574  stream << s.serialize();
575  return stream;
576 }

◆ operator>>()

QDataStream& operator>> ( QDataStream &  stream,
QREDataLoader::ImportSettings s 
)

Definition at line 134 of file QREDataLoader.cpp.

579 {
580  QByteArray b;
581  stream >> b;
582  s.deserialize(b);
583  return stream;
584 }
void deserialize(const QByteArray &data)