BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
CsvNamespace.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/ImportDataWidgets/CsvImportAssistant/CsvNamespace.h
6 //! @brief Defines namespace csv
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_IMPORTDATAWIDGETS_CSVIMPORTASSISTANT_CSVNAMESPACE_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_IMPORTDATAWIDGETS_CSVIMPORTASSISTANT_CSVNAMESPACE_H
17 
18 #include <QString>
19 #include <QStringList>
20 #include <vector>
21 
22 namespace csv {
24 const QStringList HeaderLabels{"Intensity", "theta", "q"};
25 const QStringList UnitsLabels{"default", "bin", "rad", "deg", "mm", "1/nm"};
26 typedef std::vector<std::vector<std::string>> DataArray;
27 typedef std::vector<std::string> DataRow;
28 typedef std::vector<std::string> DataColumn;
29 bool isAscii(QString filename);
30 } // namespace csv
31 
32 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_IMPORTDATAWIDGETS_CSVIMPORTASSISTANT_CSVNAMESPACE_H
std::string filename(const std::string &path)
Returns path without directory part ("Foo/Bar/Doz.int.gz" -> "Doz.int.gz")
const QStringList UnitsLabels
Definition: CsvNamespace.h:25
ColumnType
Definition: CsvNamespace.h:23
@ _q_
Definition: CsvNamespace.h:23
@ _theta_
Definition: CsvNamespace.h:23
@ _intensity_
Definition: CsvNamespace.h:23
std::vector< std::string > DataColumn
Definition: CsvNamespace.h:28
std::vector< std::string > DataRow
Definition: CsvNamespace.h:27
bool isAscii(QString filename)
std::vector< std::vector< std::string > > DataArray
Definition: CsvNamespace.h:26
const QStringList HeaderLabels
Definition: CsvNamespace.h:24