BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ItemFileNameUtils.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/ItemFileNameUtils.h
6 //! @brief Defines auxiliary functions in ItemFileNameUtils namespace.
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_MODELS_ITEMFILENAMEUTILS_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_ITEMFILENAMEUTILS_H
17 
18 #include <QString>
19 
20 class InstrumentItem;
21 class JobItem;
22 class RealDataItem;
23 
24 //! Contains set of convenience methods for JobItem and its children.
25 
26 namespace ItemFileNameUtils {
27 
28 QString jobResultsFileName(const JobItem& jobItem);
29 
30 QString jobReferenceFileName(const JobItem& jobItem);
31 
32 QString jobNativeDataFileName(const JobItem& jobItem);
33 
34 QString realDataFileName(const RealDataItem& realDataItem);
35 
36 QString nativeDataFileName(const RealDataItem& realDataItem);
37 
38 QString instrumentDataFileName(const InstrumentItem& instrumentItem);
39 
40 QStringList nonXMLFileNameFilters();
41 
42 } // namespace ItemFileNameUtils
43 
44 #endif // BORNAGAIN_GUI_COREGUI_MODELS_ITEMFILENAMEUTILS_H
The RealDataItem class represents intensity data imported from file and intended for fitting.
Definition: RealDataItem.h:35
Contains set of convenience methods for JobItem and its children.
QStringList nonXMLFileNameFilters()
Returns list of fileName filters related to nonXML data stored by JobModel and RealDataModel.
QString nativeDataFileName(const RealDataItem &realDataItem)
QString instrumentDataFileName(const InstrumentItem &instrumentItem)
QString jobResultsFileName(const JobItem &jobItem)
Constructs the name of the file with simulated intensities.
QString realDataFileName(const RealDataItem &realDataItem)
Constructs the name of the intensity file belonging to real data item.
QString jobReferenceFileName(const JobItem &jobItem)
Constructs the name of the file with reference data.
QString jobNativeDataFileName(const JobItem &jobItem)